Creating a JSplitPane Container - Java Swing

Java examples for Swing:JSplitPane

Description

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);

  }

}

Related Tutorials