A "simple" Example: the Rolodex
The Rolodex applet performs the following functions:
- A series of images is scrolled, in direction "LEFT", "RIGHT", "UP" or
"DOWN".
- The delay between frames ("nap") and between images ("pause") can be
configured.
- A soundtrack is played continuously.
- Each time a new image appears, a corresponding soundtrack is played.
(This is not used in our example.)
- With each image a URL is associated. When the user clicks on the image
the corresponding document is loaded. (When no URLs are given clicking
stops or restarts the display.)
- When the shift key is held down and the user clicks on the image
a new information window is displayed.
The source code
of Rolodex contains all the details.
The Rolodex applet is based on the Animator demo applet from Sun.
The Animator demo however only works once.
Its design doesn't take into account that the init()
method may be called more than once.