Solved

multisplitpane panel

Posted on 2001-09-03
13
371 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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
 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
throw exception 21 81
String array comparison 4 58
going to wrong jsp page 2 71
Selenium findElement(By.classname  identifier 15 38
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses

710 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