SplitPaneComponent
Two panes with a divider the player can drag.
Java
Inside a PanelComponent constructor. The same call draws in every family and chroma.
Java
SplitPaneComponent split = add(new SplitPaneComponent(at(new Box("split", 8, 8, 280, 140)),
SplitPaneComponent.Orientation.HORIZONTAL, fileTree, preview)
.fraction(0.35)
.limits(SplitPaneComponent.Side.FIRST, 60, 180)
.collapsible(SplitPaneComponent.Side.FIRST)
.onCommit(px -> config.treeWidth = px));Split
