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

Content of Frame is repainted incorrectly when Frame has been resized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 7
    • client-libs
    • None
    • generic
    • windows_xp

      Any AWT frames redraw containing components incorrectly. The redrawing area has the same borders as it was at the moment when the frame was shown.

      TEST CASE:
      //========================= SimpleFrame.java
      import java.awt.*;

      class SimpleFrame extends Frame {

          private SimpleFrame () {
              add(new Button("Press me"));
              pack();
              setVisible(true);
          }

          public static void main(String[] args) {
              new SimpleFrame();
          }
      }
      //========================= End of SimpleFrame.java

      JAVA VERSION:

      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b26)
      OpenJDK Client VM (build 12.0-b03, mixed mode)

            anthony Anthony Petrov (Inactive)
            denis Denis Fokin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: