Professional Documents
Culture Documents
Download Starting Out with Java Early Objects 6th Edition Gaddis Solutions Manual all chapters
Download Starting Out with Java Early Objects 6th Edition Gaddis Solutions Manual all chapters
https://testbankfan.com/product/starting-out-with-java-early-
objects-6th-edition-gaddis-test-bank/
https://testbankfan.com/product/starting-out-with-c-early-
objects-7th-edition-gaddis-solutions-manual/
https://testbankfan.com/product/starting-out-with-c-early-
objects-8th-edition-gaddis-solutions-manual/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-6th-edition-gaddis-solutions-
manual/
Starting Out with C++ Early Objects 9th Edition Gaddis
Test Bank
https://testbankfan.com/product/starting-out-with-c-early-
objects-9th-edition-gaddis-test-bank/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-6th-edition-gaddis-test-bank/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-7th-edition-gaddis-solutions-
manual/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-5th-edition-tony-gaddis-
solutions-manual/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-7th-edition-gaddis-test-bank/
Starting Out with Java – Early Objects
Answers to Review Questions
Chapter 12
Multiple Choice and True/False
1. b
2. c
3. d
4. b
5. a
6. b
7. a
8. d
9. c
10. b
11. c
12. d
13. a
14. b
15. d
16. False
17. True
18. False
19. True
20. True
21. False
22. False
23. True
24. False
4. This ListView control is declared to hold Strings, so an error will occur when trying to add
integers to it.
Algorithm Workbench
1.
.label {
-fx-font-size: 24pt;
-fx-font-style: italic;
-fx-font-weight: bold;
}
2. scene.getStylesheets().add("mystyles.css");
3.
.label, .button, .text-field {
-fx-font-size: 24pt;
-fx-font-style: italic;
-fx-font-weight: bold;
}
4. scene.getStylesheets().add("styles.css");
6. calcButton.getStyleClass().add("button-red");
7. calcButton.setId("calc-button");
8. myLabel.setStyle("-fx-font-size: 12pt");
9.
radio1.setToggleGroup(radioGroup);
radio2.setToggleGroup(radioGroup);
radio3.setToggleGroup(radioGroup);
10.
radio1.setOnAction(event ->
{
outputLabel.setText("selected");
});
11.
ListView<String> snackListView = new ListView<>();
snackListView.getItems().addAll("cheese", "olives", "crackers");
12.
TextArea textArea = new TextArea();
textArea.setPrefColumnCount(10);
textArea.setPrefRowCount(15);
textInput.setLineWrap(true);
13.
14. Write the code that creates a menu bar with one menu named File. The File menu should have
the F key assigned as a mnemonic. The File menu should have three menu items: Open, Print,
and Exit. Assign mnemonic keys of your choice to each of these items.
Short Answer
1. A type selector is used to apply a style definition to all nodes of a specific type. An ID selector
can be used to apply a style definition to a node with a specific ID.
2. .root
3. RadioButtons
4. CheckBoxes
5. You group RadioButtons together with a ToggleGroup so only one of the RadioButtons can
be selected at a time.
6. RadioButtons
7. An editable ComboBox allows the user to select an item from a dropdown list, or type input into
a field that is similar to a TextField. By default, ComboBox controls are uneditable, which means
that the user cannot type input into the control; he or she can only select items from a
dropdown list.