JavaFX overview

There is a wonderful visual scripting tool called Scene Builder that allows you to create graphical user interfaces by using drag and drop and property settings. Scene Builder generates the necessary FXML files that are used by your Integrated Development Environment (IDE) such as NetBeans.

Here is a sample UI created with Scene Builder:

And, here is the FXML file created by Scene Builder:

    <?xml version="1.0" encoding="UTF-8"?>    <?import java.lang.*?>    <?import java.util.*?>    <?import javafx.scene.control.*?>    <?import javafx.scene.layout.*?>    <?import javafx.scene.paint.*?>    <?import javafx.scene.text.*?> <AnchorPane id="AnchorPane" ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.