25.7 Wrap-Up
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’s 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 ...
Get Java™ How To Program (Early Objects), Tenth Edition 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.