List of usage examples for javax.swing JSplitPane isOneTouchExpandable
public boolean isOneTouchExpandable()
oneTouchExpandable
property. From source file:Main.java
public static void main(String[] argv) throws Exception { JButton topComponent = new JButton("top"); JButton bottomComponent = new JButton("bottom"); JSplitPane vpane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topComponent, bottomComponent); boolean b = vpane.isOneTouchExpandable(); // false by default vpane.setOneTouchExpandable(true);/*from w ww . j av a 2 s. c om*/ }