jsplitpane Questions

6

Solved

In a JSplitPane, you have the setOneTouchExpandable method which provides you with 2 buttons to quickly fully hide or full show the JSplitPane. My question is how can you programmatically "click" ...
Sextodecimo asked 7/2, 2012 at 13:34

5

Solved

I have a JFrame with BorderLayout as the layout manager. In the south border, I have a JPanel, I want this JPanel's size to be adjustable by the user, i.e. the user can click on the edge of the b...
Vertumnus asked 13/7, 2009 at 15:4

6

I have a JSplitPane with two components, A and B, but sometimes I want to be able to hide B, so that either of the following are true: components A and B are visible in the JSplitPane only compon...
Hanus asked 26/7, 2011 at 20:27

2

Below is the code for a simple layout created using several nested JSplitPanes. import java.awt.Color; import java.awt.Dimension; import java.awt.GridLayout; import javax.swing.JFrame; import java...
Phillada asked 5/11, 2016 at 16:36

7

Solved

I have a JFrame with a JSplitPane that is OneTouchExpandable. I want to remember the last Divider position of the JSplitPane on JFrame dispose and restore the Position if the JFrame is reopened. ...
Poundfoolish asked 8/2, 2011 at 14:51

2

I am having trouble getting a JSplitPane to maintain the same relative position when its container is resized. If the split pane is assumed to have a fixed position everything works fine. I can get...
Twophase asked 17/3, 2016 at 17:27

10

I have a JSplitPane which when shown should split the pane by 50%. Now on giving an argument of 0.5 (as suggested) to setDividerLocation, Java seems to treat it as a normal number instead of a per...
Beebe asked 10/12, 2009 at 6:45

2

Solved

When I call JTable#scrollRectToVisible, the row I want to show is hidden underneath the header in certain situations. The rest of this question only makes sense when using the following code. This...
Emblematize asked 5/8, 2015 at 13:37

5

Solved

JSplitPane seems to add a border to any Component added to it. This is most visible with nested JSplitPanes - e.g.: public class JSplitPaneToy { public static void main(String[] args) { JSpli...
Oliva asked 9/10, 2012 at 12:5

4

Solved

I'm trying to set the divider location of a JSplitPane but it seems not to work. Here's an SSCCE: import java.awt.Color; import javax.swing.BoxLayout; import javax.swing.JFrame; import javax.swi...
Flaring asked 2/10, 2011 at 10:12

2

Solved

Trying to create a JSplitPane with two JPanels. With the following code: JTable table = new JTable(qualifierModel); table.setDefaultEditor(String.class, new QualifierCellEditor()); JPanel qua...
Plummy asked 2/8, 2013 at 16:13

2

Solved

Is there a way to detect when a JSplitPane divider is moved? Is there a way to add a listener for divider movement? JPanel panel1 = new JPanel(); JPanel panel2 = new JPanel(); JSplitPane sp = new ...
Beekeeper asked 22/1, 2013 at 21:50

3

Solved

I'm creating an application using the NetBeans GUI Editor, in which I want to have a JSplitPane, the top component of which will be a Canvas within a JScrollPane and the bottom component will be a ...
Karonkaross asked 13/8, 2012 at 22:0

1

So, my problem boils down to this... The default dividers are kind of ugly, plus I would like to add a label to it (in the I-want-text-on-it sense, not in the "adding a JLabel to its layout" sense)...
Botulin asked 15/6, 2012 at 19:41

3

Solved

This JScrollPane based window is a top part of the JSplitPane. getBounds(), getWidth(), getHeight() all return the full size of the window, including the invisible (scrollable) part. I want to kn...
Connected asked 6/5, 2012 at 17:22

1

Solved

Please see my image below at the link and then read below it for more details on my problem. Imagine that is a Basic frame splited into two with a JSplitPane, by default when you resize your fra...
Dugan asked 24/11, 2011 at 18:23

4

Solved

The basic setup is this: I have a vertical JSplitPane that I want to have a fixed-size bottom component and a resizing top component, which I accomplished by calling setResizeWeight(1.0). In this a...
Fullmer asked 4/8, 2011 at 18:46
1

© 2022 - 2024 — McMap. All rights reserved.