Link to home
Start Free TrialLog in
Avatar of st5
st5

asked on

multisplitpane panel

Hello,
I'd like to layout components in a grid of rows and columns as GridbagLayout does, except that a split would separate each cell from its neighbour.
Do you know any Java class on the net that already makes this possible? Or would you have any advice on how to code this?
Tks
st5
Avatar of Mick Barry
Mick Barry
Flag of Australia image

JTable supports this in the X axis, but not the Y axis.
ie. it allows you to change column widths, but not row heights.
Another option would be to use nested JSPlitPane's.
Avatar of Ovi
Ovi

using swing see the objects's comment. Using awt, you must implement your own.
Avatar of st5

ASKER

>Another option would be to use nested JSPlitPane's.
Yes I will probably use nested JSplitPane's. The question is: how to model an arrangement of components laid out in nested JSplitPanes, enabling row/col to span multiple cells. I might redefine GridbagLayout, but then I need to know how to convert the constraints into an arrangement of nested splitpanes.

Avatar of st5

ASKER

>Another option would be to use nested JSPlitPane's.
Yes I will probably use nested JSplitPane's. The question is: how to model an arrangement of components laid out in nested JSplitPanes, enabling row/col to span multiple cells. I might redefine GridbagLayout, but then I need to know how to convert the constraints into an arrangement of nested splitpanes.

I think it depends a lot on your requirements.
Modifying the layout manager won't help though because I think JSplitPane use it's own custom layout manager.
Avatar of st5

ASKER

Let's put it this way: i'd like to find a way of overriding the method GridBagLayout::arrangeGrid(Container parent) so that it would handle a set of nested splitpanes.

ASKER CERTIFIED SOLUTION
Avatar of Ovi
Ovi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of st5

ASKER

Let's put it this way: i'd like to find a way of overriding the method GridBagLayout::arrangeGrid(Container parent) so that it would handle a set of nested splitpanes.

Avatar of st5

ASKER

Let's put it this way: i'd like to find a way of overriding the method GridBagLayout::arrangeGrid(Container parent) so that it would handle a set of nested splitpanes.

The problem with that is it won't allow the user to resize the layout.
This functionality is only provided with JSplitPane.
Avatar of st5

ASKER

Let's put it this way: i'd like to find a way of overriding the method GridBagLayout::arrangeGrid(Container parent) so that it would handle a set of nested splitpanes.