Back to Multiple Choice Quiz
Reading a Scene Graph
Java quiz · Question 44What does this code display in the window?
Code
1VBox root = new VBox(10);2root.getChildren().addAll(3 new Label("Name:"),4 new TextField(),5 new Button("Submit")6);7Scene scene = new Scene(root, 300, 200);8primaryStage.setScene(scene);9primaryStage.show();