使用BorderPane
布局,您可以使用单独的 FXML 文件填充它的每个部分(顶部、左侧、中心、右侧和底部)吗?
所以我会有一个 main.fxml 像:
<BorderPane fx:controller="main.mainController" xmlns:fx="http://javafx.com/fxml" >
<top>
reads from top.fxml
</top>
<left>
reads from left.fxml
</left>
<center>
reads from center.fxml
</center>
<right>
reads from right.fxml
</right>
<bottom>
reads from bottom.fxml
</bottom>
</BorderPane>