import javafx.geometry.Orientation import javafx.scene.layout.Priority import tornadofx.* /** * Created by grant on 1/15/2017. */ class SplitPaneView : View("My View") { override val root = splitpane { stackpane { label("Left") } stackpane { label("Middle") } stackpane { label("Right") } orientation = Orientation.HORIZONTAL setDividerPositions(0.3, 0.7) vboxConstraints { vGrow = Priority.ALWAYS } } }