All files to run this example are located in the root directory.
The class files contained in the root should be used during
"Buildtime". They print messages into the Java Console about
script files problems (both warnings and errors).
Please check the Java Console and correct ALL errors and warnings.
When you upload the applet to your server for production use, you should
use the class files in the "Runtime" subdirectory. They are smaller and
do NOT give you any error and warning messages.
Remember that you need a
license file as soon as you want to upload
the applet to your server. The license is FREE for non-commercial sites.
Please add the name of the applet (TOC) and your HTTP address where
you want to use the applet into an e-mail to
Stefan Ruettinger.
For a real implementation of this applet, look at my
Homepage.
Please check my homepage regularly for new versions of the applet
and my other Java applets.
And the best of all:
For any noncommercial homepage, this applet
is free. The only thing that I would like
to request is a link back to my homepage.
What are the special features and
advantages of this applet?
- Quick help
If your mouse pointer is longer than about 1 second over an item in the TOC,
a short information about the chapter is displayed.
Go to the TOC to see an example.
- Sound
Additional to the quick help, you can even specify a sound clip for each item
in the TOC. Go to the first level chapters in the TOC for an example.
- Dynamic scrollbars
Horizontal and vertical scrollbars are added/removed as it is needed.
- Flexible
Because the structure of the TOC is specified in a script file, the
solution a absolutely flexible and easy to use for your homepage.
- Customizable
Nearly everything is customizable via applet parameters or the script file,
e.g. image and openimage for each item (look at the Parameter chapter),
font and color of each item and much more.
- Selected item visible
Other than with a HTML solution, you really see the selected TOC chapter,
because it is shown in revers color.
- Recognizes changes in content
Even if you jump from one chapter to another via a link withing the
content area, the TOC recognizes it and the selected item changes.
For an example, go to the Parameter chapter an select the links in
the content area there.
- Fast display
The TOC is already shown even if the background image and images
in front of the item text are not available. As soon as an image is
loaded, the TOC is repainted.
>
- Customizable menu bar
If you use the TOC running in a seperate window, you can
add your customized menu bar (with cascading submenus) to the TOC window.
- Small
Needs only 32kB. Now has a special "buildtime" version with
syntax checks, and a optimized and small "runtime" version.