Rubberbanding in the JDK 1.0 and 1.1 Event Models

Click and drag on either applet to create a rubber band effect
Rubber1_0 Rubber1_1
Rubber1_0.java source code Rubber1_1.java source code
These applets are intended to demonstrate mouse handling in JDK 1.0 compared with JDK 1.1. The applet on the right does not work in Netscape unless you have the AWT patch.

The JDK 1.1 applet also attempts to use try/catch exception handling to allow the applet to load and display an error message, on browsers that do not support addMouseListener. I can't get this code to work, if you can, or you have any thoughts on the issue, please add your comments!