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.

 Avaya DevConnect Center
 Service Component Architecture/Service Data Objects Solution Center
 Intel Go Parallel Portal
 Internet.com eBook Library
 IBM Software Construction Toolbox
 Microsoft RIA Development Center
 Destination .NET
XML error: not well-formed (invalid token) at line 53
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%.

Latest Linux Hits Networking Flaws
Metasploit 3.2 Offers More 'Evil Deeds'
'Thank You Apple. Seriously.'
The Buzz: BlackBerry App Store Seen Next
Is .NET on Linux Finally Ready?
Red Hat Takes on HPC Market, Microsoft
Python's New Release Bridges the Gap
No Flash Seen on iPhone Horizon
Apple Yields to Complaints Over iPhone NDA
Microsoft Shows Some Ankle With Visual Studio

Use Explicit Conversion Functions to Avert Reckless Implicit Conversions
Polyglot Programming: Building Solutions by Composing Languages
Automated testing for .NET by Ben Hall
"Supply Chain" SOA with SKOS
Service Component Architecture in Real Life
C++Ox: The Dawning of a New Standard
Getting Started with Virtualization
Master Complex Builds with MSBuild
eCryptfs: Single-File Encryption in Linux
CCXML in Action: A CCXML Auto Attendant

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



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Tripwire Whitepaper: Seven Practical Steps to Mitigate Virtualization Security Risks
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES