Announcer - Listener

Example of an Announcer- Listener architecture using AWT events. The display canvas announces mouse events. Each box is controlled by a thread which listens for these events and terminates if the mouse is pressed within the box controlled by that thread. This applet will only work in browsers which support Java 1.1.

 

BoxMover.java

EventDemo.java

BoxCanvas.java