Tumbling Dukes

Two Threads

Error! You must use a Java enabled browser.



Example of implementing animation using two Threads.

Each Thread sequences through a local index to the array
of 15 Duke images.

Drawing is performed directly to the Applet; thus image flickering
may occur:

 View source: AnimationTwoThread.java
 View source: Duke.java

Compiled: JDK 1.2.1
Tested: IE 5.0
Author: Lawrence M. Brown
Date: 25 September 1999