1Button button1 = new Button("Button 1");
2Button button2 = new Button("Button 2");
3Button button3 = new Button("Button 3");
4Button button4 = new Button("Button 4");
5Button button5 = new Button("Button 5");
6Button button6 = new Button("Button 6");
7
8GridPane gridPane = new GridPane();
9
10gridPane.add(button1, 0, 0, 1, 1);
11gridPane.add(button2, 1, 0, 1, 1);
12gridPane.add(button3, 2, 0, 1, 1);
13gridPane.add(button4, 0, 1, 1, 1);
14gridPane.add(button5, 1, 1, 1, 1);
15gridPane.add(button6, 2, 1, 1, 1);
16