JDK-4149278 : JSplitPane gives additional space only to right/bottom component
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.7,1.2.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_2.5.1
  • CPU: generic
  • Submitted: 1998-06-16
  • Updated: 1999-06-24
  • Resolved: 1999-06-24
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.
Other
1.3.0 betaFixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
I'd like to suggest improving the layout manager for JSplitPane, which
are really defined in the L&F. If I have a frame window containing a
JSplitPane and I make the window larger, it always resizes the
right-hand component. In my application I'd like to have it make the
left hand component larger. There is currently no way to define that.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic kestrel-beta FIXED IN: kestrel-beta INTEGRATED IN: kestrel-beta
14-06-2004

EVALUATION ralph.kar@Eng 1998-06-16 That is right. JSplitPane has no way to specify were additional space is to be distributed. To add this feature would require an API addition. scott.violet 1999-03-23 The bound property resizeWeight has been added to support this. The default value is 0, which gives the current behavior. When the size of the splitpane changes, the left/top component gets resizeWeight * delta new space, with the bottom/right getting (1 - resizeWeigth) * delta space.
11-06-2004

WORK AROUND ralph.kar@Eng 1998-06-16 As a possible workaround you could attach a ComponentListener to your JSplitPane and track the resizing events. From there you could use setDividerLocation() in order to give additional space to whatever component you prefer.
11-06-2004

PUBLIC COMMENTS JSplitPane gives additional space only to right/bottom component and therefore needs a way to specify which component (left/top, right/bottom) gets additional space. scott.violet 1999-03-23 The bound property resizeWeight has been added to support this. The default value is 0, which gives the current behavior. When the size of the splitpane changes, the left/top component gets resizeWeight * delta new space, with the bottom/right getting (1 - resizeWeigth) * delta space.
10-06-2004