create Horizontal Split with JSplitPane - Java Swing

Java examples for Swing:JSplitPane

Description

create Horizontal Split with JSplitPane

Demo Code


//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;
    }
}

Related Tutorials