2017-03-01 49 views

回答

2

將它們放入HBox中,並將HBox置於VBox中。

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

HBox hbox = new HBox(textField, button); 
vbox.getChildren().add(hbox); 
相關問題