O'Reilly logo

JavaFX 2.0: Introduction by Example by Carl Dea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1-15. Organizing UI with Split Views

Problem

You want to split up a GUI screen by using split divider controls.

Solution

Use JavaFX’s split pane control. The javafx.scene.control.SplitPane class is a UI control that enables you to divide a screen into frame-like regions. The split control allows the user to use the mouse to move the divider between any two split regions.

Shown here is the code to create the GUI application that utilizes the javafx.scene.control.SplitPane class to divide the screen into three windowed regions. The three windowed regions are a lefthand column, an upper-right region, and a lower-right region. In addition, you will be adding Text nodes into the three regions.

// Left and right split pane SplitPane splitPane = new ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required