Back to Multiple Choice Quiz
Missing Children
Java quiz · Question 54The window appears but is completely blank. What is the bug?
Code
1@Override2public void start(Stage primaryStage) {3 VBox root = new VBox(10);4 Label title = new Label("Welcome");5 Button btn = new Button("Start");67 Scene scene = new Scene(root, 400, 300);8 primaryStage.setScene(scene);9 primaryStage.show();10}