Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4664490

REGRESSION: AWT window background isn't drawn on win32 using javaw

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • 2d
    • x86
    • windows_xp



      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)
      ======================================================================

            tdv Dmitri Trembovetski (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: