Solved

multisplitpane panel

Posted on 2001-09-03
13
361 Views
Last Modified: 2007-11-27
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
0
Comment
Question by:st5
  • 6
  • 4
  • 3
13 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
JTable supports this in the X axis, but not the Y axis.
ie. it allows you to change column widths, but not row heights.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
Another option would be to use nested JSPlitPane's.
0
 
LVL 9

Expert Comment

by:Ovi
Comment Utility
using swing see the objects's comment. Using awt, you must implement your own.
0
 

Author Comment

by:st5
Comment Utility
>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.

0
 

Author Comment

by:st5
Comment Utility
>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.

0
 
LVL 92

Expert Comment

by:objects
Comment Utility
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.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:st5
Comment Utility
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.

0
 
LVL 9

Accepted Solution

by:
Ovi earned 100 total points
Comment Utility
0
 
LVL 9

Expert Comment

by:Ovi
Comment Utility
0
 

Author Comment

by:st5
Comment Utility
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.

0
 

Author Comment

by:st5
Comment Utility
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.

0
 
LVL 92

Expert Comment

by:objects
Comment Utility
The problem with that is it won't allow the user to resize the layout.
This functionality is only provided with JSplitPane.
0
 

Author Comment

by:st5
Comment Utility
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.

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now