CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

VBox Alignment

Java quiz · Question 63
mediumJavaFX

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);