Java examples for Swing:JSplitPane
Creating a JSplitPane Container
import javax.swing.JSplitPane; public class Main { public static void main(String[] argv) { // A left-right split pane. JSplitPane hpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftComponent, rightComponent); // A top-bottom split pane. JSplitPane vpane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, topComponent, bottomComponent); } }