Javafx Hbox Alignment, layout代表 … What you are looking for is the HBox alignment property - setting it to Pos.