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
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
Another option would be to use nested JSPlitPane's.
using swing see the objects's comment. Using awt, you must implement your own.
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.
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.
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.
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.
Modifying the layout manager won't help though because I think JSplitPane use it's own custom layout manager.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Take a look at :
http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
http://www.eliad.com/pages/jsmartgrid/tutorial/doc/html/usegrid.html#props
perhaps is what you need.
http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
http://www.eliad.com/pages/jsmartgrid/tutorial/doc/html/usegrid.html#props
perhaps is what you need.
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
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.
This functionality is only provided with JSplitPane.
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.
ie. it allows you to change column widths, but not row heights.