2017-03-01 91 views

回答

2

将它们放入HBox中,并将HBox置于VBox中。

VBox vbox = ... ; 
TextField textField = ... ; 
Button button = ... ; 

HBox hbox = new HBox(textField, button); 
vbox.getChildren().add(hbox);