Content of Frame is repainted incorrectly when Frame has been resized

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 7
    • Component/s: 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)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: