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

Undecorated frames and dialog repaint incorrectly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta
    • x86
    • windows_nt
    • Verified



      Name: dsR10078 Date: 05/27/2000

      ###@###.###

      The following test reproduces the problem:
      -----------------------------------------------------------
      import java.awt.*;

      public class Test {

          public static void main(String[] args) {
              Frame f = new Frame("Decorated frame");
              f.setVisible(true);

              Frame frame = new Frame();
              frame.add(new Button("RED FRAME"));
              frame.setBounds(100, 100, 100, 100);
              frame.setBackground(Color.red);
              frame.setUndecorated(true);
              frame.setVisible(true);
              
              Dialog dialog = new Dialog(frame);
              dialog.add(new Button("GREEN DIALOG"));
              dialog.setBounds(300, 100, 100, 100);
              dialog.setBackground(Color.green);
              dialog.setUndecorated(true);
              dialog.setVisible(true);
              
          }
      }
      -----------------------------------------------------------

      Run the test case.
      An decorated frame, undecorated frame and undecorated dialog appear.
      The undecorated frame and dialog contain buttons.
      Try to drag the decorated frame over the undecorated frame and dialog.
      Notice that buttons do not repaint at all.
      Background of the undecorated toplevel is painted on exposed areas instead.

      The build which exhibits the problem:

      I:\bug\newbug>J:\jdk1.4\win32\bin\java -version
      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b13)
      Java HotSpot(TM) Client VM (build 1.3.0rc3-Z, mixed mode)

      ======================================================================

            dassunw Das Das (Inactive)
            dassunw Das Das (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: