A split pane splits a component into two parts, with an adjustable boundary in between. Figure 6.44 shows a frame with two split panes. The components in the outer split pane are arranged vertically, with a text area on the bottom and another split pane on the top. That split pane’s components are arranged horizontally, with a list on the left and a label containing an image on the right.
Construct a split pane by specifying the orientation—one of
JSplitPane.VERTICAL_SPLIT, followed by the two components. For example,
JSplitPane innerPane = new ...