AppletWriter Applet

Easy Setup

The easiest way to set up the applet on your site is to start with code found on this page. Cut and paste this sample applet code into your own HTML page. Please make sure the AppletWriterV2Demo.class file is in the same directory as your html file.

After you change your HTML file you must hit 'Reload' on your browser to view the changes. You may need to close and reopen the browser to see the changes.

Once you have this sample applet working within your own page, then begin to customize the parameters for your own site.


Technical Support

If you encounter any problems setting up the AppletWriter applet, please read the applet configuration Frequently Asked Questions section on our web site. Visit http://www.consultcom.com and browse to the TypeWriter page in our Java Software section. The Frequently Asked Questions page lists the solutions to the most common questions that arise when setting up the applet. If your question in not answered there, then email your question to support@consultcom.com. Please be as specific as possible when describing your problem. Be sure to include your order number if it is available.


Applet Parameters

numberOfLinesá The number of lines of text to be displayed in the applet.
numberOfPagesá The number of "pages" of text to be displayed.
defFgColorá The default text color for all lines. This is specified by the three digit RGB (red, green, blue) value for the color. The three numbers must be separated by commas. For example, the following line sets the font color to red.

<param name=defFgColor value="255,0,0">

defFontSizeá The default font size for all text.
defFontStyleá This is the default font style used in the applet. Use one of the following:
  • Font.PLAIN
  • Font.BOLD
  • Font.ITALIC
  • Font.ITALIC+Font.BOLD
defLineHorizAligná The deafult horizontal alignment of the text. Possible values are:
  • left
  • right
  • middle
defPageVertAligná The vertical alignment of the text. Possible values are:
  • top
  • bottom
  • center
bgcolorá The background color of the applet. This is specified by the three digit RGB (red, green, blue) value for the color. The three numbers must be separated by commas. For example, the following line sets the background color to red.

<param name=bgcolor value="255,0,0">

defFontá The default font used for all text displayed in the applet. Use one of the following:
  • TimesNewRoman
  • Courier
  • Dialog
  • Helvetica
á
characterSleepá The speed at which the text is typed.
mousePauseá Set this value to 'true' if you would like the typing to pause when the mouse is placed over the applet.
defPagePauseá The default amount of time the each page is displayed after the entire message has been typed.
linespacingá The amount of vertical space between each line.
vpaddingá The amount of vertical space between the top of the applet and the first line of text.
hpaddingá The amount of horizntal space between the side of the applet and the text.
pageXTotalLinesá The number of lines of text to be displayed on page number X. For example, to set the number of lines to be displayed on the first page, use the parameter page1TotalLines.
pageXPauseá The amount of time page number X is displayed after the entire message has been typed. For example, to display the text on page 1 for 4 seconds, set the parameter page1Pause to "4000".
lineXá Each line parameter contains one sentence to be displayed in the applet. The first sentence is specified by the parameter line1, the second by line2, etc.
fontXá Sets the font used for the text on line number X. For example, use the parameter font1 to change the font for line 1. Use one of the following values:
  • TimesNewRoman
  • Courier
  • Dialog
  • Helvetica
á
sizeXá Sets the font size for the text on line number X. For example, use the parameter size1 to change the font size for line 1. á
styleXá This is the font style for the text on line number X. Use one of the following:
  • Font.PLAIN
  • Font.BOLD
  • Font.ITALIC
  • Font.ITALIC+Font.BOLD
colorXá The font color for the text on line number X. This is specified by the three digit RGB (red, green, blue) value for the color. The three numbers must be separated by commas. For example, the following line sets the text color on line 1 to red.

<param name=colorX value="255,0,0">

pageXValigná The vertical alignment of the text on page number X. Possible values are:
  • top
  • bottom
  • center
pageXHaligná The horizontal alignment of the text on page number X. Possible values are:
  • left
  • right
  • middle
sourcefileá The sourcefile parameter may be used in place of the line parameter to specify the text displayed in the applet. To use the sourcefile parameter, set its value to the filename that you want to display. This file must be a text file.

When using the sourcefile parameter you should delete the line1, line2, ...linex, parameters since all of the text will come from the text file. Similarly, if you leave the sourcefile parameter empty, then you should include the string1, string2, ...stringx parameters.

For example, if you want to display text from a text file, the code should look like this:

<param name=sourcefile value="data.txt">

and you can delete all the lines like

<param name=line1 value="Sentence number one.">
<param name=line2 value="Sentence number two.">

In this case, a text file named data.txt must exist in the same directory as the applet's class file. It must also contain two lines, the first containing "Sentence number on." and the second "Sentence number two."

To see this parameter in action, delete the string parameters from this example and set the sourcefile parameter to Data.txt


Applet Usage

The purchased version of the AppletWriter applet may be displayed in multiple locations on one web site (one domain). Our free evaluation version is for unlimited use, however it displays the consulting.com, Inc url in the browser's status bar. The purchased version does not display our url. For more information visit the consulting.com, Inc. web site.