Saved Bookmarks
| 1. |
Can A Class Be It's Own Event Handler? Explain How To Implement This. |
|
Answer» Sure. 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. Sure. 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. |
|