The Event object passed to the action listener method has a reference to the component (JButton) that was clicked. Get that reference, cast it to a JButton and you can access that button's methods...
Type: Posts; User: Norm
The Event object passed to the action listener method has a reference to the component (JButton) that was clicked. Get that reference, cast it to a JButton and you can access that button's methods...
The code needs to get a reference to the button and call one of its methods.
Is something supposed to happen? Can you explain what you want the code to do when a button is clicked?