Solved

multisplitpane panel

Posted on 2001-09-03
13
365 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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 84
servlet  URL Rewriting 1 36
HashTable highest marks enumeration alternative 9 37
String array comparison 4 32
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

770 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