Like SplitPaneDemo, SplitPaneDividerDemo features a horizontal split pane with one-touch buttons. SplitPaneDividerDemo has the following additional features:
The split pane's resize weight is explicitly set (to 0.5).
The split pane is displayed at its default preferred size.
A Reset button at the bottom of the window invokes resetToPreferredSizes on the split pane.
The components in the split pane are instances of a custom JComponent subclass called SizeDisplayer. A SizeDisplayer displays optional text against the background of a faded (and also optional) image. More importantly, it has rectangles that show its preferred and minimum sizes.
SplitPaneDividerDemo sets up its SizeDisplayers to have equal preferred sizes (due to the equally large images they show) but unequal minimum sizes