Saturday, 18 February 2012

Can a class be it's own event handler? Explain how to implement this? | Java Swings

Yes A Class can be its own event handler. For an example could be a class that extends Jbutton and implements ActionListener. In the actionPerformed method, put the code to perform when the button is pressed.