JideSplitPane - equivalent to setResizeWeight()?

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

JideSplitPane - equivalent to setResizeWeight()?

Postby martin.guetlein » Mon Dec 17, 2007 4:00 am

Hi,

I have the following problem with JideSplitPane:

I have 2 Components, left and right. The left component should be as big as its preferred size, and the right component should get all the extra space.
This is done in a JSplitPane by default (and can be controlled via setResizeWeight() ).

What JideSplitPane does is setting the divider somewhere in between, i.e. the left component is getting too much space.
Neither setProportions() (as I dont know the total size of the split pane) nor setDividerLocation() work properly (does only work after the split-pane is painted at least once).

Thanx for help,
Martin
martin.guetlein
 
Posts: 1
Joined: Fri Jun 22, 2007 3:18 am

Postby JIDE Support » Mon Dec 17, 2007 8:28 am

JideSplitPane supports it too. You just add the second component using JideBoxLayout.VARY contraint. Refer to JideBoxLayout for more details as JideSplitPane uses it.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 47 guests