25.5.2 Technologies Overview
This section introduces the technologies you’ll use to build the Tip Calculator app.
Class Application
The main class in a JavaFX app is a subclass of Application (package javafx.application.Application). The app’s main
method calls class Application
’s static
launch method to begin executing a JavaFX app. This method, in turn, causes the JavaFX runtime to create an object of the Application
subclass and call its start method, which creates the GUI, attaches it to a Scene
and places it on the Stage
that method start
receives as an argument.
Arranging JavaFX Components with a GridPane
Recall that layout containers arrange JavaFX components in a Scene
. A GridPane (package javafx.scene.layout) arranges JavaFX components ...
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.