Notes
- Applet size: If the resizeMin parameter is true (the
default is false), the applet is resized to its minimum size to fit the text
and specified margins and border. Unfortunately, this has no effect in
Netscape 2.0 (it does work in the JDK 1.0 appletviewer).
However, you can click on the applet while holding down any modifier key
to see its desired size on the status line, and set the WIDTH and HEIGHT
attributes of the APPLET tag accordingly. Add a few pixels to account for
differences in font size across platforms.
- Positioning: The text is centered horizontally and vertically.
- Double-buffering: The memory used for double buffering is minimized
by creating separate buffers for each text line, since these are the only
parts of the display which change. This makes the code more complex, but
the potential memory savings is significant.
- Colors: In the parameters table, #rrggbb specifies a
color's red, green, and blue components using hexadecimal notation.
For further details and lots of examples, try
www.infi.net.
- Background gradient fill: If the bgcolor2 parameter is
specified, a gradient fill will be done on the background, starting with
bgcolor and ending with bgcolor2.
The bgGradient parameter specifies the direction of the gradient:
vertical means top to bottom,
horizontal means left to right. Be warned: gradients tend not
to look very good on 8-bit displays due to the limited color pallet.