Java Animation
Here's an applet which takes advantage of the following java elements:
- Double buffering
- Dynamic resizing (if your viewing container supports it, like appletviewer.
Netscape and IE do not.)
- Using Media Tracker to ensure the images are downloaded before the
animation begins.
- Mouse event handling
- Threads
Try to do the following:
- Resize the applet (if your viewer supports it). The image should
dynamically resize.
- Click on the image. It should play the animation backwards.
View the source here (note the file name
has a .txt extension so you can view it in your browser). You can also
download the entire project here.
The Drinking Games
| The Development Site
| Resume
webmaster@ringthis.com