Basic HTML version of Foils prepared July 6 99

Foil 49 Animation Thread for Applet

From Use of Java Language in Computational Science DoD Modernization Users Group Conference Monterey -- June 7 99. by Nancy McCracken, Geoffrey C. Fox


1 Another way to introduce a thread is to create a thread that uses a run method in another class. This class has to be declared to implement the interface Runnable, which has one method called run.
2 This is the correct way to run an animation in an applet, which can show a simulation or other sequence of drawings.
3 We have created a template program for an applet with a drawing area for the animation and a layout with room for several control buttons, textfields, etc.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Jul 6 1999