advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

FreeText


Scrolling Text Applet Help File.
Copyright: Sirius Computer Consultants 1999. All rights reserved.
Author : Patrick O'Brien 3/6/99
Version: 1.1
General Description.
With this little Applet you will be able to display many pages of information in just one area of your webpage. In addition this Applet will give your web page a dynamic animated feel. The applet will automatically size itself to the available area given to it by the HTML form. (The WIDTH and HEIGHT of the APPLET tag.)

The following is the complete listing of the possible parameters that may be used to configure this applet. If any of the parameters are not present within the APPLET tag in your HTML form then the Applet will assume the default value, as indicated in the right hand column.

It is recommended that you look at the example HTML files provided in conjunction with the following table in order to understand fully how to use each parameter.



SIRtext Applet Parameters.
Parameter NameDescriptionRange of ValuesTypical ValueDefault Value if
Parameter not present
TITLE The Tree Title Text This is the Main Title.
TITLEFONT The number of the Font 1 - 10 1 1
TITLECOLOR Title text color number 1 - 10 1 1
BGCOLOR Background color number 1 - 10 1 1
BORDERWIDTH The width in pixels of the Border 1 - 30 1 0
BORDERCOLOR Border color number 1 - 10 2 1
SCROLLSPEED Speed at which the Applet will Scroll the Text.
The higher the number the faster the scroll.
0 - 100 70 97
DISPLAYTIME This is the amount of time that the Applet will pause
scrolling between each page of text.
0 - 1000 50 1
MAXLINES The Maximum number of lines of text the Applet will
attempt to read from the TEXTLINE parameter.
1 - 10000 30 1
TEXTLINE1 Font Number|Color number|Text Data
. See Below for details of the TEXTLINE parameter
TEXTLINEn
FONT1 Font Definition Type|N,B,I|size TimesRoman|B|14 Courier|N|12
. N - Normal TimesRoman|I|12
. B - Bold TimesRoman|BI|14
FONT10 I - Italic
Color1 Color definition Red Green Blue 255|255|255 (White) 255|255|255
. 0-255|0-255|0-255 0|0|0 (Black) 0|0|0
. 255|0|0 (Red)
Color10 255|128|0 (Orange)


The TEXTLINE Parameter.
Each line of text should be entered using a TEXTLINEn parameter, where n is the line number. So the first line will be entered with a parameter of TEXTLINE1, the second with TEXTLINE2 and so on up to a maximum line number which has been set by the MAXLINES parameter. (see above) This table should be viewed in conjunction with the example files in order to obtain a clearer understanding.

DescriptionExample ValueExplanation
Font1This specifies the font with which to display this line of text.
Text Color1This specifies the color of this line of text.
TextA line of TextThis is the text for this line.


Here is an example of how the HTML should look with an explanation of each line on the right.
<APPLET CODE="SIRtext.class" WIDTH=150 HEIGHT=200>The APPLET tag defining the size of the Applet and the Applet to use.
<PARAM NAME="TITLE" VALUE="My Title">Set the Title to My Title
<PARAM NAME="TITLEFONT" VALUE="1">This means use the font defined by parameter FONT1 for the title.
<PARAM NAME="TITLECOLOR" VALUE="2">The number of the Color to use for the Title text.
<PARAM NAME="BGCOLOR" VALUE="3">The number of the Color to use for the background.
<PARAM NAME="BORDERWIDTH" VALUE="1"> Set the width of the Border to 1 pixel, 0 means no border.
<PARAM NAME="BORDERCOLOR" VALUE="2">Set the Border color to the Color defined by parameter Color2
<PARAM NAME="SCROLLSPEED" VALUE="70">Set the Scroll speed to 70.
<PARAM NAME="DISPLAYTIME" VALUE="250">Set the Display time to 250
<PARAM NAME="MAXLINES" VALUE="10">Set the Maximum lines to 10
<PARAM NAME="FONT1" VALUE="Helvetica|B|14">Define font 1 as Style=Helvetica, Size=14,BOLD
<PARAM NAME="FONT2" VALUE="Helvetica|N|10">Define font 2 as Style=Helvetica, Size=10,NORMAL
<PARAM NAME="FONT3" VALUE="Courier|B|10">Define font 3 as Style=Courier, Size=10,BOLD
<PARAM NAME="FONT4" VALUE="Courier|B|18">Define font 4 as Style=Courier, Size=18,BOLD
<PARAM NAME="Color1" VALUE="150|150|150">Define RGB for Color 1
<PARAM NAME="Color2" VALUE="0|0|0">Define RGB for Color 2
<PARAM NAME="Color3" VALUE="120|190|190">Define RGB for Color 3
<PARAM NAME="Color4" VALUE="150|220|220">Define RGB for Color 4
<PARAM NAME="Color5" VALUE="0|0|0">Define RGB for Color 5
<PARAM NAME="Color6" VALUE="90|160|160">Define RGB for Color 6
<PARAM NAME="Color7" VALUE="247|156|57">Define RGB for Color 7
<PARAM NAME="Color8" VALUE="27|162|67">Define RGB for Color 8
<PARAM NAME="Color9" VALUE="248|168|77">Define RGB for Color 9
<PARAM NAME="Color10" VALUE="255|255|255">Define RGB for Color 10
<PARAM NAME="TEXTLINE1" VALUE="2|2|LINE 1">Text for line 1 using font 2 and color 2
<PARAM NAME="TEXTLINE2" VALUE="1|2|LINE 2">Text for line 2 using font 1 and color 2
<PARAM NAME="TEXTLINE3" VALUE="2|8|LINE 3">Text for line 3 using font 2 and color 8
<PARAM NAME="TEXTLINE4" VALUE="2|2|LINE 4">Text for line 4 using font 2 and color 2
<PARAM NAME="TEXTLINE5" VALUE="2|2|LINE 5">Text for line 5 using font 2 and color 2
<PARAM NAME="TEXTLINE6" VALUE="4|2| LINE 6">Text for line 6 using font 4 and color 2
<PARAM NAME="TEXTLINE7" VALUE="2|6|LINE 7">Text for line 7 using font 2 and color 6
<PARAM NAME="TEXTLINE8" VALUE="1|2|LINE 8">Text for line 8 using font 1 and color 2
<PARAM NAME="TEXTLINE9" VALUE="2|2|LINE 9">Text for line 9 using font 2 and color 2
<PARAM NAME="TEXTLINE10" VALUE="2|2|LINE 10">Text for line 10 using font 2 and color 2
</APPLET>Then end APPLET tag.
                                                       
 




Some Common Color Definitions.
ColorRedGreenBlue
Black 000000000
White 255255255
Grey 128128128
Red 255000000
Orange 255128000
Yellow 255255000
Green 000255000
Blue 000000255
Purple 200000200
Brown 128064000
          
          
          
          


More on Defining Fonts.
Font Types - The different Type faces generally available are,

Courier
Dialog
Helvetica
Symbol
TimesRoman

Back to the FreeText applet page.

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.

 Microsoft Visual Studio 2010 Showcase
 Avaya Developer Showcase
 MSDN Spotlight
 PHP for Windows Showcase
XML error: undefined entity at line 39
advertisement
Receive Articles via our XML/RSS feed
Receive Articles via our XML/RSS feed

JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

Windows 7: From Beta to Final Code in One Year
Google Shows Off Chrome OS, Releases Source
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?
Fedora 12 Takes Aim at Linux Networking
Top Supercomputer Nearly Doubles in Speed
Fedora 12 Linux Tackles Virtualization
Apple Gives iPhone Developers App Status Tracker
Novell Sets OpenSUSE 11.2 Free

Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Exploring HTML 5's Audio/Video Multimedia Support
Overriding Virtual Functions? Use C++0x Attributes to Avoid Bugs.
Understanding the Cloud Computing Security Vulnerabilities
Cisco and IBM Target a Greener World
Upgrade to Visual Studio 2010 with the Ultimate Offer

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs