Basic HTML version of Foils prepared 18 May 97

Foil 13 Details of Using the Sun animator Applet --I

From Java Tutorial - Spring 1997 Part 3:Graphics and the Abstract Windowing Toolkit Peking Tutorial, Web Certificate -- Spring-Summer 1997. by Nancy J. McCracken,Geoffrey C. Fox


1. Prepare a directory. and cd to this directory.
2. Copy Animator.class, ParseException.class, and ImageNotFoundException.class into your directory.
3. create a directory audio and put your audio file in it.
Your audio files can be called 0.au, 1.au, etc.
  • The background soundtrack could be any .au file.
4. create a directory images and put your image files in it.
  • your image files can be called T1.gif, T2.gif, etc.
  • the loading message can be called loading-msg.gif.
5. prepare a HTML page which has the following type of applet tag:
<applet code=Animator.class width=200 height=200>
<param name=imagesource value="images">
<param name=endimage value=10>
<param name=soundsource value="audio">
<param name=soundtrack value=spacemusic.au>
<param name=sounds value="1.au|2.au|3.au|4.au|5.au|6.au|7.au|8.au|9.au|0.au">
<param name=pause value=200>
</applet>



© 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 Thu Jan 8 1998