0
GridPane.setConstraints(button1,0,0);
GridPane.setConstraints(button2,0,1);
GridPane.setConstraints(button3,0,2);
gridPane.getChildren().addAll(button1,button2,button3);
我有一个GridPane一些按钮,因为他们如上图所示,我想如何从上面的所有元素点到下一个GridPane
- 中心他们都在
gridPane
; - 将每个按钮的标签置于 的按钮边界内(可选)。
目前按钮对齐到左侧,他们看起来不太好。有人可以告诉我该怎么做吗?感谢