Solved

multisplitpane panel

Posted on 2001-09-03
13
362 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
ID: 6450119
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
ID: 6450121
Another option would be to use nested JSPlitPane's.
0
 
LVL 9

Expert Comment

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

Author Comment

by:st5
ID: 6450152
>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
ID: 6450171
>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
ID: 6450183
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:st5
ID: 6450186
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
ID: 6450188
0
 
LVL 9

Expert Comment

by:Ovi
ID: 6450189
0
 

Author Comment

by:st5
ID: 6450199
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
ID: 6450200
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
ID: 6450205
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
ID: 6450207
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

914 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

18 Experts available now in Live!

Get 1:1 Help Now