Java examples for Swing:JSplitPane
create Vertical Split
//package com.java2s; import java.awt.Component; import javax.swing.JSplitPane; public class Main { public static JSplitPane createVerticalSplit(Component top, Component bottom) {/* w ww . j a va 2 s.c om*/ JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT, top, bottom); split.setDividerSize(5); split.setBorder(null); return split; } }