English
Summary
Conclusions
JavaFX combines a tree of nodes, automatic layout, and events. Code creates behavior, FXML describes structure, and CSS defines styling. Short handlers and separate pure computations simplify testing and prepare the application for MVC.
Self-check questions
- How does a Stage differ from a Scene?
- Which actions must not be performed in init?
- Why is setOnAction better for an ordinary button?
- How does a VBox determine the placement of its children?
- Why is runLater not a background thread?
- When are a controller's
@FXMLfields already initialized? - Why is opens needed for a controller's private fields?
- Which checks must be repeated for the built image?