Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
Two java.awt.Buttons are used.
Created in the applet's constructor.
Listened to by this applet.
Added to the applet.
To determine which button is clicked, we ask the ActionEvent argument of actionPerformed, called ev,
to get us the source of the action event.
This we compare to the first button's reference to find out what to do.
The call to getSource returns a reference to a java.lang.Object , because each class is an extension of Object, and each class can be the source of an action event.