Resize « JSplitPane « Java Swing Q&A





1. JSplitPane set resizable false    stackoverflow.com

How to make JSplitPane to resizable false? I didn't want to resize the JSplitPane, I used it for the border of this pane. Is there any other way to create same ...

2. Resize Control with Java JSplitPane    stackoverflow.com

Please see my image below at the link and then read below it for more details on my problem. Sample image Imagine that is a Basic frame splited into two with ...

3. Resizing my SplitPane    coderanch.com

HI, You have to use the setRezeWeight() method. This method fixes the relative sizes of the two components of the SplitPane. Hope that helps, Terry OOPS! I hadn't read your question properly. If you want to respect the user weights just set a constant that's passed into the above method and have that constant updated with your listener. [This message has ...

4. Resizing in JSplitPane    coderanch.com

5. JSplitPane resizing    coderanch.com

I got it to work by calling invalidate() and validate() on the component that is changing, and then by calling resetToPreferredSizes() on the splitpane. Here's my test code... import java.awt.Color; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JSplitPane; import javax.swing.JTextField; public class Resizer { private JFrame f; private JSplitPane ...

6. JSplitPane & window resizing    coderanch.com

7. how to keep JSplitPane from resizing    coderanch.com

Hi Jeff, I am not sure if you can get a floating effect you want, but here are a couple of (potentially silly) ideas all the same... In one program in which I wanted to prevent the divider of a JSplitPane from "sqeezing" a component, I explicitly set the component's minimumSize. The SpiltPane then honours this, and won't try to squeez ...

8. SplitPane causes headache when resizing...    coderanch.com

Hello all, I have some difficulty when using a splitpane, this is my code : //Provide minimum sizes for the two components in the contentPane. upperPanel.setMinimumSize(new Dimension(300, 150)); contentPane.add(upperPanel, BorderLayout.NORTH); contentPane.add(tablePanel, BorderLayout.SOUTH); // Create a split pane. splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, upperPanel, tableScrollPane); splitPane.setOneTouchExpandable(true); splitPane.setDividerLocation(150); // Add the split pane to this frame. contentPane.add(splitPane); Now when i drag the splitpane to ...

9. jsplitpane resizing problem    coderanch.com

hi, i have a jsplitpane that has a jscrollpane on the left on the right.The one on the left contans a jtree while the one on the right contains several jpanel(and different layout managers).The problem comes in the displayam of the split pane, its compressed and i have to manually resize it to see the components. i thot that on calling ...





10. Resizing JSplitPane    coderanch.com

11. Weird JSplitPane behaviour on frame resize (bug?)    coderanch.com

I'm trying to make a GUI that includes several split panes, and am finding that the movement of the divider seems to depend on how fast you resize the window. In a configuration with a left-right JSplitPane with a panel weighting of 0.5, i.e the divider is supposed to stay in the middle: if you grab the right or left side ...