Bouncing Objects

There are two applets here that show elementary use of threads and how to animate using double buffering. The first applet is modeled after Example 4.6 in the book Java Examples in a Nutshell published by O'Reilly and written by David Flanagan, but the example here uses the 1.1 event model. The second example cleans up some of the code in the first example and allows for multiple bouncing objects. To run these applets you'll need a 1.1 aware browser.

The Classes

Javadoc for MultiBouncy

Owen L. Astrachan
Last modified: Wed Mar 25 11:09:11 EST 1998