Delegation Event Model
In summary, our button test applet:
- implements the ActionListener interface, that is, it implements the actionPerformed(…) method
- registers itself as a listener of ActionEvents, that is, it invokes the addActionListener(…) method on the button object
This is called the delegation event model