CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Missing Children

Java quiz · Question 54
mediumJavaFX

The window appears but is completely blank. What is the bug?

Code

1@Override
2public void start(Stage primaryStage) {
3 VBox root = new VBox(10);
4 Label title = new Label("Welcome");
5 Button btn = new Button("Start");
6 
7 Scene scene = new Scene(root, 400, 300);
8 primaryStage.setScene(scene);
9 primaryStage.show();
10}