Java examples for Swing:JSplitPane
create Horizontal Split with JSplitPane
//package com.java2s; import java.awt.Component; import javax.swing.JSplitPane; public class Main { public static JSplitPane createHorizontalSplit(Component left, Component right) {/*ww w. j ava 2 s. com*/ JSplitPane split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, left, right); split.setDividerSize(5); split.setBorder(null); return split; } }