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

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