I have a 6 X 6 grid of JButtons, layed out with this code:
I want to know if the ActionListener can pickup when any button in the array is clicked rather then just a specific buttonPHP Code:btnGrid = new JButton[6][6];
for (int i=0; i<6; i++) {
for (int j=0; j<6; j++) {
btnGrid[i][j] = new JButton();
btnGrid[i][j].addActionListener(this);
pCentre.add(btnGrid[i][j]);
}
}
Thanks....
