create Vertical Split - Java Swing

Java examples for Swing:JSplitPane

Description

create Vertical Split

Demo Code


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

Related Tutorials