JSplitPane
JSplitPane is a Swing container that renders two components separated by a draggable divider. It is commonly used to create editors and views where the user can adjust how much space is allotted to each pane. The pane can be oriented horizontally or vertically, corresponding to a left–right or top–bottom arrangement.
Two components can be supplied up front via a constructor or later through setter methods. When horizontal,
Key properties include the divider location, divider size, continuous layout, and resize weight. The divider location
JSplitPane fires property change events for changes such as dividerLocation and orientation, enabling listeners to respond
Constructors include: new JSplitPane(int orientation), new JSplitPane(int orientation, Component left, Component right), and equivalent variants for
Usage typically involves adding the split pane to a container with a layout manager (for example, in