posted 13 years ago
Hello Trupti,
I am a JavaFx newbie also; it looks as if your application is a my JavaFx game (a kind of Sokoban game). I have a grid of 22 * 22 tiles, located at certain positions:
ImageView le_buildingView[][] = new ImageView[22][22];
for (nRow = 0; nRow < 22; nRow++) {
for (nCol = 0; nCol < 22; nCol++) {
le_buildingView[nCol][nRow] = new ImageView ();
le_buildingView[nCol][nRow].setX (nCol * 26 + 178);
le_buildingView[nCol][nRow].setY (nRow * 26 + 40);
leView.getChildren ().add (le_buildingView[nCol][nRow]);