JDK-6323205 : Wrong sizing policy JTree on GridBagLayout
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-09-13
  • Updated: 2011-01-19
  • Resolved: 2005-09-16
Related Reports
Duplicate :  
Description
Using JFrame component with GridBagLayout, JTree and JEditorPane each on own JScrollPane placed in a frame. JTree has a wrong sizing, spreaded in both directions, didn't follow given weights. It's a regression compared with jdk1.5, jdk1.4. This problem blocks layouting some basic wizard in NetBeans5.0 if run on jdk1.6.
Try run the attached test application TestWithTree on jdk1.5 and jdk1.6 to show the differences.

Comments
EVALUATION This is the result of 4238932 changes and will be fixed by 6299377.
16-09-2005

EVALUATION This is likely the same as 6299377. Reassigning to awt.
13-09-2005