官术网_书友最值得收藏!

BorderPane layout manager

BorderPane suggests several positions to align each subnode: top, bottom, left, right, or center:

Refer to the following code:

BorderPane root = new BorderPane();
root.setRight(new Text("Right "));
root.setCenter(new Text("Center"));
root.setBottom(new Text(" Bottom"));
root.setLeft(new Text(" Left"));

Text top = new Text("Top");
root.setTop(top);

BorderPane.setAlignment(top, Pos.CENTER);

Note the last line, where the static method is used to adjust top-element horizontal alignment. This is a JavaFX-specific approach to set Pane constraints.

主站蜘蛛池模板: 江山市| 澳门| 云安县| 印江| 峨边| 枣庄市| 五大连池市| 阜新市| 芜湖县| 威宁| 宁河县| 金溪县| 文登市| 微山县| 新化县| 民丰县| 尼木县| 卓资县| 沅江市| 资兴市| 乌恰县| 鄂托克前旗| 绥德县| 邳州市| 北京市| 达拉特旗| 南木林县| 安庆市| 乌兰浩特市| 安塞县| 久治县| 辽宁省| 华亭县| 阜新市| 三门峡市| 伊宁市| 龙胜| 科技| 平潭县| 肇庆市| 肥乡县|