Documentation



JavaFX Scene Builder: Getting Started with JavaFX Scene Builder

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.

  1. In the Document panel, select the Controller section.

  2. Set the value in the Controller class text field to issuetrackinglite.IssueTrackingLiteController by selecting it from the drop-down list of available values.

    Figure 5-1 Add Controller Class

    Description of Figure 5-1 follows
    Description of "Figure 5-1 Add Controller Class"

Close Window

Table of Contents

JavaFX Scene Builder: Getting Started with JavaFX Scene Builder

Expand | Collapse