Button bt1 = new Button(“Java”);
Button bt2 = new Button(“Java”);
Button bt3 = new Button(“Java”);
Button bt4 = new Button(“Java”);
pane.getChildren().addAll(bt1, bt2, bt3, bt4);
/**
* The main method is only needed for the IDE with
limited JavaFX
* support. Not needed for running from the command line.
*/
public static void main(String[] args) {
launch(args);
}
}
A. Two buttons are displayed with the same text “Java”.
B. Three buttons are displayed with the same text “Java”.
C. One button is displayed with the text “Java”.
D. Four buttons are displayed with the same text “Java”.
#
14
The method __________ gets the contents of the text field
tf.
Please double check your answer before clicking the Submit
button. Whatever submitted to LiveLab is FINAL and counted
for your grade.
Have you submitted your answer to LiveLib? ______________