Two small arrows appear at the top of the divider in the example's split pane. You can change the split direction after the split pane has been created with the setOrientation method. Split pane provides one other option, specified with JSplitPane.VERTICAL_SPLIT, that places one component above the other. The split pane in this example is split horizontally � the two components appear side by side � as specified by the JSplitPane.HORIZONTAL_SPLIT argument to the constructor. Refer to Setting the Components in a Split Pane for information about JSplitPane methods that set the components dynamically. The other arguments are the two components to put in the split pane. The constructor used by this example takes three arguments. Provide minimum sizes for the two components in the split paneĭimension minimumSize = new Dimension(100, 50) SplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, Create a split pane with the two scroll panes in it.