1
+ <?import javafx .geometry.Insets?>
2
+ <?import javafx .scene.layout.GridPane?>
3
+
4
+ <?import javafx .scene.control.Button?>
5
+ <?import javafx .scene.control.Label?>
6
+ <GridPane fx : controller =" sample.Controller"
7
+ xmlns : fx =" http://javafx.com/fxml" alignment =" center" hgap =" 10" vgap =" 10"
8
+ gridLinesVisible =" true" >
9
+ <!-- <columnConstraints>-->
10
+ <!-- <ColumnConstraints percentWidth="50.0"/>-->
11
+ <!-- <ColumnConstraints percentWidth="50.0"/>-->
12
+ <!-- </columnConstraints>-->
13
+
14
+ <Button text =" Button One" GridPane.rowIndex=" 0" GridPane.columnIndex=" 0" />
15
+ <Button text =" Button Two" GridPane.rowIndex=" 0" GridPane.columnIndex=" 1" />
16
+ <Button text =" Button Three" GridPane.rowIndex=" 1" GridPane.columnIndex=" 0" />
17
+ <Button text =" Really Long Button Four more text more text more text more text more text more text " GridPane.rowIndex=" 1" GridPane.columnIndex=" 1" />
18
+ <Button text =" Button Five" GridPane.rowIndex=" 2" GridPane.columnIndex=" 0" />
19
+ </GridPane >
0 commit comments