JDK-6697413 : Content of Frame is repainted incorrectly when Frame has been resized
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2008-05-04
  • Updated: 2011-01-19
  • Resolved: 2008-05-26
Related Reports
Duplicate :  
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)

Comments
EVALUATION The problem exists since build 25. It is not reproducible in the build 24.
05-05-2008