質問編集履歴
1
クラスの挙動に関して追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -33,6 +33,15 @@
|
|
33
33
|
squares[i][j].where_I_am(i,j);
|
34
34
|
// GridPaneに配置
|
35
35
|
gp.add(squares[i][j],i,j);
|
36
|
+
●●●修正●●●
|
37
|
+
squares[i][j].setOnMouseClicked(new EventHandler<MouseEvent>() {
|
38
|
+
@Override
|
39
|
+
public void handle(MouseEvent event) {
|
40
|
+
choosenRow = squares[i][j].gridPaneRow;
|
41
|
+
choosenColumn = squares[i][j].gridPaneColumn;
|
42
|
+
}
|
43
|
+
});
|
44
|
+
●●●ここまで●●●
|
36
45
|
}
|
37
46
|
}
|
38
47
|
}
|