1 | Any class that intends to "listen" for an ActionEvent must implement the ActionListener interface |
2 | To register the applet as a listener of button events, type the following: Button button = new Button(...); button.addActionListener( this ); |
3 | The keyword this refers to the current applet |