Building the preferences user interface

We're finally finished with the main controller, and we can turn our attention to the next big piece, PreferencesController. Our preferences dialog will be, as is usually expected, a modal dialog. It will offer a tabbed interface with one tab for general settings, then a tab for each supported social network. We start that work by adding a new FXML file and controller to our project, and NetBeans has a great wizard for that. Right-click on the desired package, and click on New | Other. From the Categories list, select JavaFX, and then, from the File Types lists, select Empty FXML as shown in the following screenshot:

After clicking on Next, you should see the FXML Name and Location step. This will ...

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.