so I want to get the specific button which called an actionPerformed method in order to make changes to the button once it has been pressed. The reason for this is I have a grid of buttons and I want to change the appearance of the last one pressed. I have used the getSource() method which kind of works but it gives me all of the previous buttons that have been pressed which is not what I want. please help me find a solution

