June 2017
Beginner
1296 pages
69h 23m
English
In this chapter, we introduced JavaFX. We presented the structure of a JavaFX stage (the application window). You learned that the stage displays a scene graph, that the scene graph is composed of nodes and that nodes consist of layouts and controls.
You designed GUIs using visual programming techniques in JavaFX Scene Builder, which enabled you to create GUIs without writing any Java code. You arranged Label, ImageView, TextField, Slider and Button controls using the VBox and GridPane layout containers. You learned how class FXMLLoader uses the FXML created in Scene Builder to create the GUI.
You implemented a controller class to respond to user interactions with Button and Slider controls. We showed that certain event handlers ...