JDK-6769531 : PIT : Panel is seen above the ScrollPane which contains the table when frame is resized
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u12
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2008-11-10
  • Updated: 2019-12-17
  • Resolved: 2019-12-17
Related Reports
Relates :  
Description
I have frame which contains a AWT Panel with red background color. I have added JScrollPane to the panel. JTable is added to the JScrollPane, When i resize the frame, i can see AWT Panel that is red color. The JTable is not seen. If i change AWT Panel is to  JPanel, we can see JTable with data.    I feel that AWT container once again takes the highest priority.

Step to reproduced:-
---------------------
1) Run the attached testcase.
2) Resize the frame, if you dn't see Table with data, but see only red color. then the bug is reprodduced. 

I tested this on windows vista home premium with jdk6u12 b01 pit build

Comments
EVALUATION The red panel is visible for a while because HW/LW mixing code slows down performance upon resize (6768230). The fix for 6768230 should fix the delay. jdk6u10 (and 6u12 b01 PIT) has another defect, the red panel flickers during resizing. Specifying sun.awt.noerasebackground=true option resolves the flickering issue.
20-11-2008