PreviousNextUpFAQ Table of Contents

Adding Other Applets

The VolanoChat client applet can embed other Java applets and display them in the banner area of the chat room windows. You can remove the BannerPlayer applet provided with the VolanoChat product and replace it with any other standard Java applet. You need to store the applet using the same codebase as the VolanoChat applet. By default, the codebase is the vcclient subdirectory.

For example, here is an applet written by Patrick Chan of Xeo for the Sierra Club:

Applet 11.1: Xeo Wipe applet.

This applet is placed on the Web page with the following HTML tags:

<applet codebase="http://www.xeo.com/java/wipe/"
        code="Wipe.class" width="460" height="55">
<param name="image"     value="http://www.xeo.com/java/wipe/smog.gif">
<param name="delay"     value="2000">
<param name="url"       value="http://www.sierraclub.org/">
<param name="margin"    value="10">
<param name="xoffset"   value="130">
<param name="on-delay"  value="1000">
<param name="off-delay" value="500">
<param name="author"    value="www.xeo.com">
</applet>

To embed this applet (with Patrick's permission) in the banner area of your chat rooms, you would define the VolanoChat applet properties with:

banner.code=Wipe.class
banner.parameters=Wipe.txt
banner.width=460
banner.height=55
banner.fill=true

where Wipe.txt contains the parameters:

width=460
height=55
image=smog.gif
delay=2000
url=http://www.sierraclub.org/
margin=10
xoffset=130
on-delay=1000
off-delay=500
author=www.xeo.com

To add the applet, simply place the following files in the vcclient codebase directory of the VolanoChat applet:

Wipe.class
the Java applet class file.
Wipe.txt
the Java properties file containing the Wipe applet parameters.
smog.gif
the image file that the Wipe applet expects to be found in its codebase directory.

PreviousNextUpFAQ Check HTML Table of Contents