KzmFortune
Applet Name: KzmFortune
Applet Source: KzmFortune.java
Import(s): java.applet, java.awt, java.net, java.lang, java.io,
java.util
Feature(s): text, network
Author: Alessandro Garbagnati
Usage Guide:
KzmFortune is an applet based on my KzmScroll
applet. It put a scrolling message on the screen, just like KzmScroll.
The message is randomly readed from a text file that must be present on
the same directory of the host.
PARAMETERS
- Font: (String, default=Arial)
This is the name of the font. The only restriction is that it must
be written exactly as the system need (normally with the first letter capitalized).
NOT WELL TESTED, SORRY !
- FontSize: (Int, default=12)
The size of the font.
- FontBold: (0/1, default=1)
If this value is 0, the font is bold, if it is 1 the font is bold.
- Rectangle: (X Y WIDTH HEIGHT, default=applet dimension)
This is the dimension of the scrollable area.
- Shift: (Int, default=5)
Is the shifting of the message.
- Delay: (Int, default=50)
Is the delay between every shift.
- Rect_Color: (R G B, default=0 0 0)
The color of the scrollable area, the rectangle.
- Text_Color: (R G B, default=255 255 255)
The color of the message.
- FileName: (String, default=fortune.txt)
The name of the file containing the fortunes. If the filename is unreadable
the applet doesn't work.
- FileLines: (int)
The number of fortunes into the file. Every fortune must be 1 line.
If the number of line is wrong, the message will be "NO FORTUNE".