MsgScroll Applet

In Java, the equivalent of the "Hello World" program seems to be the text scroller applet. So here's another one. This version allows you to configure the speed, colors and font and optionally adds a shadow effect to the message text. Clicking on the applet toggles the scrolling on and off.


Parameters

Name Format Description
delay
(optional)
n Specifies time between display updates in milliseconds. Default is 25.
msg
(optional)
string The message to display. Default is Your message here....
fgcolor
(optional)
color Specifies the text color. Default is black.
bgcolor
(optional)
color Specifies the background color for the applet area. Default is white.
shadow
(optional)
x,y,color
OR
x,y
x and y specify the offsets of the shadow relative to the message text, color defines the shadow's color. By default, no shadow is drawn. If only the offsets are given the default color is lightGray.
border
(optional)
n
OR
n,color
n specifies the size and color of the border drawn around the edge of the applet. If n is less than one, no border is drawn. The default is no border. If only a size is given color will default to the value of fgcolor.
 For the above parameters, color may be one of the following: black, blue, cyan, darkgray, gray, green, lightgray, magenta, orange, pink, red, white or yellow. Or you can specify an RGB hex triplet, e.g. #ffcc99.
font
(optional)
name,style,size Specifies the font used for the message text. The defaults are dialog,plain,12.
 For the font parameter, name may be one of: courier, dialog, helvetica, symbol or timesroman and style may be one of: bold, bolditalic, italic or plain.
Files
Source: MsgScroll.java Class: MsgScroll.class