BorderPane
BorderPane 分为五个不同的区域。

边境地区(Top,Right,Bottom,Left)根据其内容优先选择大小。默认情况下,他们只会采取他们需要的东西,而 Center 区域将占用任何剩余的空间。当边界区域为空时,它们不占用任何空间。
每个区域只能包含一个元素。它可以使用方法 setTop(Node),setRight(Node),setBottom(Node),setLeft(Node),setCenter(Node) 添加。你可以使用其他布局将多个元素放入单个区域。
//BorderPane example
BorderPane pane = new BorderPane();
Label top = new Label("Top");
Label right = new Label("Right");
HBox bottom = new HBox();
bottom.getChildren().addAll(new Label("First"), new Label("Second"));
VBox left = new VBox();
left.getChildren().addAll(new Label("Upper"), new Label("Lower"));
StackPane center = new StackPane();
center.getChildren().addAll(new Label("Lorem"), new Label("ipsum"));
pane.setTop(top); //The text "Top"
pane.setRight(right); //The text "Right"
pane.setBottom(bottom); //Row of two texts
pane.setLeft(left); //Column of two texts
pane.setCenter(center); //Two texts on each other