GUI Event Handling (Java 1.1.*) - create listners and register them
Create an applet that handles various GUI component events such as buttons
being pressed, etc. using the Listener Interfaces of Java 1.1.*.
- you must create a Java applet with a class that extends the Applet
class. (you must import the java.applet package).
- this applet must also implement the ActionListener interface to get
the events when a button is hit. (you must import the java.event package).
- you should create your own methods that implement all methods of
the ActionListener(e.g. actionPerformed()).
- you should create an init() method that among other things
must register the applet as a ActionListener
Here is the applet
Solution
|