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 Programming Blueprints now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.