2. If scene references to scene class and stage references to stage class; then to apply a "style.css" file to javafx application you should use ……………………………. a. getStylesheets().add("styles.css"); b. getStylesheets(styles.css); c. getStylesheets(styles.css); d. getStylesheets().add("styles.css"); 3. The Menue object is used to contain a type ……………….. object a. Pane b. MenuBar c. MenuItem d. Menu 4. when creating BorderPane using a constructor with one argument, the node that is passed as the argument is placed in the ………………………. a. Bottom b. Top c. Center d. Left e. Right 5. To remove the current elements of vbox then add label1 and button1 to it, you should use………. a. vbox.getChildren().add(label1,button1) b. vbox.getChildren().addAll(label1,button1) c. vbox.getChildren().setAll(label1,button1) d. vbox.getgetItems().addAll(label1,button1) 6. If fileMenu references Menue class and saveItem references MenuItem class , which of the following is valid ? a. fileMenu.getItems().add(saveItem); b. savaItem.getItems().addTo (fileMenu); c. savaItem.addTo(eMenu); d. fileMenu.getMenuItems().add(saveItem);
2. If scene references to scene class and stage references to stage class; then to apply a "style.css" file to javafx application you should use …………………………….
a. getStylesheets().add("styles.css");
b. getStylesheets(styles.css);
c. getStylesheets(styles.css);
d. getStylesheets().add("styles.css");
3. The Menue object is used to contain a type ……………….. object
a. Pane
b. MenuBar
c. MenuItem
d. Menu
4. when creating BorderPane using a constructor with one argument, the node that is passed as the argument is placed in the ……………………….
a. Bottom
b. Top
c. Center
d. Left
e. Right
5. To remove the current elements of vbox then add label1 and button1 to it, you should use……….
a. vbox.getChildren().add(label1,button1)
b. vbox.getChildren().addAll(label1,button1)
c. vbox.getChildren().setAll(label1,button1)
d. vbox.getgetItems().addAll(label1,button1)
6. If fileMenu references Menue class and saveItem references MenuItem class , which of the following is valid ?
a. fileMenu.getItems().add(saveItem);
b. savaItem.getItems().addTo (fileMenu);
c. savaItem.addTo(eMenu);
d. fileMenu.getMenuItems().add(saveItem);
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)