12.20 Exercises, Problems, and Projects
12.20.1 Multiple Choice Exercises
-
1. An example of a GUI component class is
❑ FXML
❑ controller
❑ TextField
❑ Stage
-
2. What are the primary uses of GUI components? (Check all that apply.)
❑ Display information
❑ Facilitate the coding of methods
❑ Let the user control the program
❑ Collect information from the user
-
3. In what package do you find the Button, TextField, and ComboBox classes?
❑ javafx.scene
❑ javafx.scene.control
❑ java.scene
❑ java.awt
❑ java.io
-
4. V Box is a
❑ Label
❑ Layout container that arranges components vertically
❑ Layout container that arranges components horizontally
❑ Scene
-
5. The property of a Label element that specifies the text inside the ...
Get Java Illuminated, 5th 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.