← Back to Question List
Java Quiz #63
VBox Alignment
Where do the children appear in the window?
📄 Code
1VBox root = new VBox(10);2root.setAlignment(Pos.CENTER);3root.setPadding(new Insets(25));4root.getChildren().addAll(5 new Label("Login"),6 new TextField(),7 new Button("Sign In")8);9Scene scene = new Scene(root, 400, 300);