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

Content of Frame is repainted incorrectly when Frame has been resized

    XMLWordPrintable

Details

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

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: