Images and Icons

With the exception of the background image all icons and images are specified and loaded into the applet using the imageN parameter. There are two elements to this parameter Image Name and Image url. These two elements should be separated by a | character. Once an image has been specified using this parameter it can be referred to within the other parameter simply by the Image Name.

The image parameter names must be a continuous sequence starting with 1. So if you have 5 images then you would have the following 5 parameters,

<param name="image1" value="imagenameA|./images/imageA.gif">
<param name="image2" value="imagenameB|./images/imageB.gif">
<param name="image3" value="imagenameC|./images/imageC.gif">
<param name="image4" value="imagenameD|./images/imageD.gif">
<param name="image5" value="imagenameE|./images/imageE.gif">

Example
For example lets suppose you have icon image "folderopen.gif" in a subdirectory of "images" that you wish to refer to as "OpenFolder", the image parameter would be,

<param name="image1" value="OpenFolder|./images/folderopen.gif">

Notice that in this example a relative url is used, an absolute url may also be specified

e.g.
<param name="image1" value="OpenFolder|http://www.jpowered.com/images/folderopen.gif">

Default
There are no default values for this parameter. The applet will attempt to read the image1 parameter and then image2 etc. This will continue until the imageN parameter is not found. It is therefore essential that name numbering is continuous.
If there is an error whilst trying to load the image from the supplied url then the current parameter will be skipped and no entry will be made in the image list.