← Back to Question List
Java Quiz #44
Reading a Scene Graph
What 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();