Answers to Self-Review Exercises

25.1

a) TextField.

b) GridPane.

c) Hierarchy.

d) ChangeListener<Number>.

e) Stage.

f) initialize.

g) scene graph.

h) nodes.

i) JavaFX Scene Builder.

j) FXML.

25.2

a) False. You can use JavaFX Scene Builder to create JavaFX GUIs without writing any code.

b) True.

c) False. The name of the property is Halignment.

d) True.

e) False. You override class Application’s start method to display a JavaFX app’s stage.

f) True.

g) False. By default a Slider allows you to select values from 0.0 to 100.0.

h) True.

i) True.

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.