Pressing a button generates an ActionEvent |
An ActionEvent is "handled" by the actionPerformed(...) method of the ActionListener interface |
A Java event is like the proverbial tree in the woods: nobody will hear it unless someone is listening! So our button applet must "register" itself as a listener of button events... |