1. What is the Label Applet?
The Label applet works great when you have a heading or subtitle within an
HTML page that needs to be changed dynamically. You might find yourself
needing this capability if you are using the
applets and changing images within a web page (then you probably
also want a heading to change at the same time).
The best way to understand the Label applet is by playing around
with the following demonstration:
and appearance of the text in the Label applet above:
| This is a new string
The example above was created with the following HTML code:
To see an example of the Label applet in use, visit
<applet name="Label" code="Label.class" width=400 height=32>|
<param name="text" value="This text is changeable">
<param name="foreground" value="0000FF">
2. Label Applet Parameters
The following table describes the parameters that the Label applet
can use. In most cases, you will only need to use just a couple
parameters, but it is nice to have total control when you need it.
For the Label applet, only the text parameter is required.
|Label.class Java Applet Parameters|
The text string to display in the applet
Background tile image of the applet (default: none)
Background color of the applet (default light gray: F0F0F0)
Foreground color of applet text (default black: 000000)
Font name: Dialog, Helvetica, TimesRoman, Courier, Symbol (default: Helvetica)
Font style: plain, bold, italic, bold italic (default: plain)
Horizontal text alignment: left, center, right (default: center)
A 2x2 (corners) Image: creates a 'frame' inside the display [5.2a]
NOTE: The height of the text displayed in the applet is automatic. A font is
automatically selected and used that will attempt to maximize the text
size within the height constraints of the applet. So, select an applet
height and the text will automatically fill that height! This was done
to allow maximum portability between machines and screen resolutions.
hex-color: A color specified in 'RRGGBB' (red/green/blue) hexadecimal
format. For example, 'FF0000' is pure red, '00FF00' is pure green, '0000FF'
is pure blue, 'FFFFFF' is white, '000000' is black, 'CCCCCC' is light gray,
etc. Please refer to
for a list of sample colors along with 'RRGGBB' values.
Please review the
to understand how all Duckware applets can be scripted by either
is able to script the applet above.
4. No Nonsense License Agreement
The Label applet is affordware.
That means that you (a business or person) may try it for
free to see if it works for you.
If you can afford the license fee, you should purchase a license.
If you find anything wrong with the software, let me know and I will try
to fix the problem immediately. You assume the entire risk and liability
of using this software. You may not modify the software in any way. The
software may not be used on adult sites nor to display adult material.
If you violate this license agreement you agree to stop using this software.
If you do not agree to these license terms, do not use this software.
If you do agree to these license terms, you may
purchase a license
and use the Label applet on your web site or CD royalty-free!