NewsBanner

Last updated: 08.05.2002


Files

Parameters

Test Applet


Files

Filename Description Java Class
NewsBannerApplet Implements the news banner, including specific drawing methods and parameter reading. [Java File] [Class File]
ExtendedApplet Implements parameter parsing and other frequently-required applet functionality. [Java File] [Class File]
NewsBannerStrings A set of sample strings for the applet. [Other File]  
AlternativeStrings Another set of sample strings for the applet. [Other File]  
Project Archive (StuffIt) Sources and CodeWarrior project in StuffIt 5 format for Macintosh users. [StuffIt Archive]  
Project Archive (ZIP) Sources in ZIP format for PC users. [ZIP Archive]  

To download source or class files, click on the file icon with your right mouse button (Windows/UNIX) or click and hold (Macintosh) and choose "Save ..." or "Download ...". Archives containing the sources for this applet are provided in StuffIt 5 and Zip format.

Parameters

Parameter Type Values Default Notes
string-file String - - File containing strings to show (required).
font String - TimesRoman bold 14 Font used for the display. The string specifies the family, face, and size and should have the form: 'fontname style size'.
text-alignment String left, right, center left String indicating how text should be aligned in the banner.
scroll-direction String left, right, up, down, random up Direction in which new strings should be scrolled into the banner.
text-color Color #rrggbb #000000 Color used to draw text.
background-color Color #rrggbb #000000 Color used to draw background on which text appears.
frame-color Color #rrggbb #000000 Color used for frame surrounding display.
delay int 1+ 5 Time in seconds between each item shown.

Test Applet

[raingod:resources:java] -- [up][links][home]