NEW
Font size
WorksheetsJava Chapter 12 Review Questions
Total questions: 21
Worksheet time: 11mins
The primary purpose of this type of control is to display text
Button
Label
Message
Text
This type of control appears as a rectangular region that can accept keyboard input from the user
Button
Label
TextField
InputField
Typically, when the user clicks this type of control, an action takes place
Button
Label
TextField
Switch
In memory, the GUI objects in a scene are organized as nodes in this type of structure
scene array
scene graph
scene tree
scene stack
There can be only one of these in a scene. It is the parent of all the other nodes
leaf node
master node
root node
branch node
This type of node can have other nodes as children
leaf node
master node
anchor node
branch node
This type of node cannot have other nodes as children
leaf node
root node
container node
branch node
All JavaFX applications must extend the _________ class
JavaFX
Application
GUI
Window
This container arranges its contents in a single, vertical row
VerticalBox
VBox
GridPane
HBox
You use this class to load an image file into memory
ImageView
ImageLoader
Image
Img
You use this class to actually display an image
ImageView
ImageLoader
Image
Img
The EventHandler interface specifies a method named:
register
onClick
fire
handle
Which class do you use to create an alert dialog?
AlertDialog
PopUpDialog
AlertMessage
Alert
Which is not a valid alert dialog type?
AlertType.CONFIRMATION
AlertType.INFORMATION
AlertType.MESSAGE
AlertType.WARNING
The BorderPane layout container has five regions known as which of the following?
north, south, east, west, center
top, bottom, left, right, center
up, down, left, right, middle
I, II, III, IV, and V
What type of object does a layout container's getChildren() method return?
ExpandableList
MoveableList
ArrayList
ObservableList
The Stage class is in the javafx.scene package
True
False
The HBox container makes all of the nodes it contains of the same height.
True
False
You can nest a layout container inside of another layout container
True
False
Only one object at a time may be placed into a BorderPane region
True
False
The Alert class's showAndWait method displays a modal dialog
True
False
