5 Bind the GUI to the Application Logic
This chapter describes the steps to bind the FXML layout you are building with JavaFX Scene Builder to the source controller file that has been provided with the IssueTrackingLite sample.
The controller source file, IssueTrackingLiteController.java
, manages the events and actions taken on each element you add to the FXML GUI layout that you are building. Setting the controller class file name enables Scene Builder to provide you with the names of the event handlers and instance variables that are declared in the controller source file.
-
In the Document panel, select the Controller section.
-
Set the value in the Controller class text field to
issuetrackinglite.IssueTrackingLiteController
by selecting it from the drop-down list of available values.