I have a gridLayout of JButtons. I'd like to distinguish every JButton from each other in the actionPerformed function. I don't want to "name" each JButton. The user press a JButton randomly. Is there any method to know which button has been pressed? It is possible? I have a gridLayout of JButtons. I'd like to di