JDK-4664490 : REGRESSION: AWT window background isn't drawn on win32 using javaw
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2002-04-08
  • Updated: 2002-08-20
  • Resolved: 2002-08-20
Related Reports
Duplicate :  
Relates :  
Relates :  
Description

Name: gm110360			Date: 04/08/2002


FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

FULL OPERATING SYSTEM VERSION :

Microsoft Windows XP [Version 5.1.2600]

ADDITIONAL OPERATING SYSTEMS :

German version


EXTRA RELEVANT SYSTEM CONFIGURATION :
ATI Radeon 7500 graphics adapter

A DESCRIPTION OF THE PROBLEM :
If you run the attached code, it will run correctly if
started with "java" but not, if started with "javaw".  If
you use javaw, the Frame's background isn't displayed
until you move the mouse into the window.  This behavior
can also be observed with applets.

REGRESSION.  Last worked in version 1.3.1

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Compile code
2. run with "javaw"
3. watch

EXPECTED VERSUS ACTUAL BEHAVIOR :
The window should have a white background, not a
transparent one through which you can see the desktop wall
paper.

This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.awt.event.*;

class FrameTest extends Frame {
    FrameTest() {
       super("Time - Client");
       addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
             System.exit(0);
          }
       } );

       setLayout(new FlowLayout());
       Button button = new Button("HeiHo!");
       add(button);
       pack();
    }

    public static void main( String[] args ) {
       new FrameTest().setVisible(true);
    }
}

---------- END SOURCE ----------

Release Regression From : 1.3.1_03
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

(Review ID: 145102) 
======================================================================

Comments
EVALUATION Related to 4458337? ###@###.### 2002-05-29 Name: ssR10077 Date: 07/01/2002 Probably the same problem as 4458337. ======================================================================
29-05-2002