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);

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter15: Using Javafx And Scene Builder
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question
100%

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);

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Image Element
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage