QUESTION 4
If you have two RadioButtons (dogRadio and catRadio), how should you code them to create a mutually exclusive relationship?
|
ToggleGroup radioGroup = new ToggleGroup(); |
||
|
ToggleGroup radioGroup = new radioGroup(); |
||
|
dogRadio.setToggleGroup(); |
||
|
ToggleGroup dogRadio = new ToggleGroup(); |
10 points
QUESTION 5
Which of the following statements creates a Slider with a range of 1 to 20 with a starting value of 1?
|
Slider slider = new Slider(0, 20, 1); |
||
|
Slider slider = new slider(0.0, 20.0, 1.0); |
||
|
Slider slider = new Slider(1.0, 20.0, 1.0); |
||
|
Slider slider = new Slider(1.0, 20); |
10 points
QUESTION 6
The type of control normally used when you want the user to only be allowed to select one option from several possible options is the __________.
|
Button |
||
|
RadioButton |
||
|
CheckBox |
||
|
Any of these |
10 points
QUESTION 7
In the hexadecimal color value #CCAA99, the CC refers to the __________ color component?
|
red |
||
|
blue |
||
|
green |
||
|
yellow |
QUESTION 8
Given the following styles, what size will the text of the label
be?
.root { -fx- font-size: 12pt; }
.label { -fx- font-size: 18pt; }
|
12 pts |
||
|
18 pts |
||
|
15 pts |
||
|
This will cause an error because there are duplicate font-size styles. |
10 points
QUESTION 9
To replace a ListView control's existing items with a new list of items, use the __________ method.
|
getItems.addAll() |
||
|
getItems().setAll() |
||
|
getItems().addAll() |
||
|
getItems.setAll() |
4) ToggleGroup radioGroup = new ToggleGroup(); dogRadio.setToggleGroup(radioGroup); catRadio.setToggleGroup(radioGroup): 5) Slider slider = new Slider(1.0, 20.0, 1.0); 6) RadioButton 7) red 8) 18 pts 9) getItems().setAll()
QUESTION 4 If you have two RadioButtons (dogRadio and catRadio), how should you code them to...