Hi everyone,
I am currently in the process of making a java minesweeper game for school and have run into a problem. I have created an array of 64 buttons arranged in a grid layout. The problem i am having is getting the x and y co-ordinates of a particular button pressed and sending these co-ordinates to another class which contains a 2d array. any suggestions on how i can obtain the x and y position of the button pressed??? any help on this matter would be greatly appreciated
thanks