Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.JButton;
import javax.swing.JSplitPane;

public class Main {
    public static void main(String[] argv) throws Exception {
        JButton leftComponent = new JButton("left");
        JButton rightComponent = new JButton("right");

        // Create a left-right split pane
        JSplitPane hpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftComponent, rightComponent);

    }
}