Back to Multiple Choice Quiz
VBox Alignment
Java quiz · Question 63Where 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);