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” the hide button on the JSplitPane? I may have wrongly explained myself. I want the splitpane to show only one of the 2 components at start (this is what
Tag: jsplitpane
Making a JPanel manually resizable
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 border and drag it up to make it larger. Is there any way you know that I can do this? Answer