Forum: Java Nov 28th, 2005 |
| Replies: 7 Views: 6,150 Also, make sure you added the actionlistener to the component. |
Forum: Java Nov 27th, 2005 |
| Replies: 7 Views: 6,150 In the action performed method, include all of your current code inside of an if statement that checks which button was clicked.
Example:
if(e.getSource==<name of button>)
{
//CODE GOES HERE.
} |