JDK-6777370 : PIT : AWT components are not rendered correctly after resizing the JFrame.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u12
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,windows_xp,windows_vista
  • CPU: x86
  • Submitted: 2008-11-27
  • Updated: 2011-01-19
  • Resolved: 2008-12-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u12 b02Fixed 7Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
I have a JFrame, which contains a AWT Button added to the north & a AWT TextArea added to the south of the JFrame. When i resize the frame. Half of the awt components are not seen. It works fine in jdk1.6.0 b104 build & 6u12 b01 ( takes some time to see the components because of bug 6768230 ). This got broken in 6u12 b02 pit build. Hence its a regression.   This can be observed any look and feel.
I have attached the screen shot.

Step to reproduce:-
--------------------
1) Run the attached testcase.
2) Resize the frame to very small & get the frame to the same size or to a bigger size, Observe that awt components are not fully rendered. If you see the same then the bug is not reproduced.

I tested this on win xp sp3 with 6u12 b02 pit build.

Comments
SUGGESTED FIX http://sa.sfbay.sun.com/projects/awt_data/6u12/6777370.1/
03-12-2008

EVALUATION The bug is a regression of the fix for 6768230 (HW/LW mixing code slows down resize performance). The fix for 6768230 optimizes the mixing code. In particular, the Component.applyCompoundShape() method checks that new shape is different from the shape applied before. The mixing code should be enhanced in order to handle all valid "apply shape" requests.
27-11-2008