12.5.2 Q4: Which of the following statements is false?
a. JavaFX applications in which the GUI is implemented as FXML adhere to the
Model-View-Controller (MVC) design pattern, which separates an app’s data
(contained in the model) from the app’s GUI (the view) and the app’s processing
logic (the controller).
b. The model presents the data stored in the view.
c. When a user provides input, the controller modifies the model with the given
input.
d. When the model changes, the controller updates the view to present the changed
data.
12.5.2 Q5: In a JavaFX FXML app, you define the app’s event handlers in a________
class, which defines instance variables for interacting with controls
programmatically, as well as event-handling methods.
a. view
b. model
c. controller
d. data
Section 12.5.3 Building the App’s GUI
12.5.3 Q1: Which of the following statements is false?
a. You can set a Button’s text by double clicking it, or by selecting the Button, then
setting its Text property in the Inspector window’s Properties section.
b. A GridPane column’s contents are left-aligned by default.
c. Setting a node’s Pref Width property of a GridPane column to
USE_COMPUTED_SIZE indicates that the width should be based on the widest child.
d. All of the above are true.
12.5.3 Q2: The space between a node’s contents and its top, right, bottom and left
edges is known as the ________, which separates the contents from the node’s edges.
a. margin
b. spacing.
c. padding.
d. None of the above.
12.5.3 Q3: Which of the following statements is false?
a. You can specify the default amount of space between a GridPane’s columns and
rows with its Hgap (horizontal gap) and Vgap (vertical gap) properties, respectively.