Home » Unlabelled » Can a class be it's own event handler? Explain how to implement this? | Core Java
Monday, 13 February 2012
Can a class be it's own event handler? Explain how to implement this? | Core Java
Sure.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.
No comments:
Post a Comment