JDK-6783180 : Choice can be seen on the JScrollPane's scrollbar when mixing of heavy weight & light weight compone
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u12
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-12-10
  • Updated: 2011-01-19
  • Resolved: 2008-12-10
Related Reports
Duplicate :  
Description
I have JScrollPane, which contains few AWT & Swing components.  When the frame is realized, I resize the frame to smaller size , so that i can see both horizontal & vertical scrollbar.  When i resize , i see that AWT Choice is seen on the JScrollPane's scrollbar. I tested this on jdk6 b104 , 6u10 b33 & 6u12 b02 promoted build. I have attached the screen shot .   ScrollPane is one place where user will put his components.
Please refer to the page under Swing's ScrollPane  http://java.sun.com/products/jfc/tsc/articles/mixing/ .  

Step to Reproduce:-
-------------------
1) Run the attached testcase.
2) Resize the frame , so that you can see both the vertical & horizontal scrollbar. Observe that choice is seen vertical scrollbar. If you see the same, then the bug is not reproduced.

Comments
EVALUATION It's a duplicate of 6777320 - the HW/LW mixing code doesn't apply new shape to the component if the new shape differs by width only from the old shape.
10-12-2008