JavaFX 佈局 BorderPane

BorderPane

Center 會擴展剩餘空間

BorderPane root = new BorderPane();
root.setTop(new Label("Top"));
root.setLeft(new Label("Left"));
root.setRight(new Label("Right"));
root.setBottom(new Label("Bottom"));
root.setCenter(new Label("Center"));
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章