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


Partners & Affiliates











advertisement


AnyFontV


Installation
Install all following files in the same directory as your HTML file and set file permission correctly for Internet access 
  • AnyFontV.class
  • conf.dat
  • font file which you choose, let's say, you pick font_1_12.fnt file then you need go to "FontInfo\Font1" folder, copy font_1_12.fnt to current folder holding AnyFontV.class and conf.dat, make sure these 3 files are sitting under the same folder.
All font files are located under "FontInfo" folder. The trial version has "mw6tech demo" as first news and some characters have horizontal bar inside, full version has no such issue. All news information are stored in a file called"conf.dat",  this file format is pretty much like HTML format, you can use any text editor tool to generate this file,  in order to let applet parse it properly, this file must comply with some guidelines. Each news entry is defined by tags values and must be in the same line, namely, do not punch ENTER key in middle of news entry, any blank lines and lines starting with "<!" are skipped. Take a look at following sample"conf.dat" file. 
Back to Top



 
Sample "conf.dat" file
[Sample conf.dat file for all news, put news caption, news content and news URL link in different lines] 

[News 1] 
content_1=MW6 is hometown of high quality and reliable applets
url_1=http://www.mw6tech.com/demo.html
color_1=0, 0 ,0

[News 2] 
content_2=Download our evaluation version products for a try
url_2=http://www.mw6tech.com/demo.html
color_2=0, 0 ,0

[News 3] 
content_3=Order our products either on-line or off-line
url_3=http://www.mw6tech.com/demo.html
color_3=0, 0 ,0

[News 4] 
content_4=We provide free unlimited support
url_4=http://www.mw6tech.com/demo.html
color_4=0, 0 ,0

[News 5] 
content_5=We can also offer consulting service for you
url_5=http://www.mw6tech.com/demo.html
color_5=0, 0 ,0

Back to Top


 
Applet parameters
Name Description
window  Defines name of a frame or a window where links will be opened. There are 5 choices for this parameter 
  • "_self": open page in current window
  • "_parent": open page in parent window
  •  "_top": open page in topmost window
  • "_blank": open page in new unnamed top-level window
  • name: open page in a new top-level window called name 
Sample Usage:
          <param name="window" vaule="_self">
confFile Indicate whether conf.dat sitting on the web server side with same folder as applet itself is used to hold all news info, 'Y' means usage of conf.dat and 'N' represents news parameters inside applet tag take effective

Sample Usage:
          <param name="confFile" vaule="Y">

content_1 1st news content (if confFile='N')

Sample Usage:
          <param name="content_1" vaule="MW6 is hometown of high quality and reliable applets">

url_1 1st news URL link (if confFile='N')

Sample Usage:
          <param name="url_1" vaule="http://www.mw6tech.com/demo.html">

color_1 1st news color (if confFile='N')

Sample Usage:
          <param name="color_1" vaule="0, 0, 0">

content_M M-th news content (if confFile='N')

Sample Usage: (M=3)
          <param name="content_3" vaule="MW6 is hometown of high quality and reliable applets">

url_M M-th news URL link (if confFile='N')

Sample Usage:  (M=3)
          <param name="url_3" vaule="http://www.mw6tech.com/demo.html">

color_M M-th news color (if confFile='N')

Sample Usage:(M=3)
          <param name="color_3" vaule="0, 0, 0">

backColor Applet background color using RGB triplet of 3 decimal numbers in the range of 0-255. 

Sample Usage:
           <param name="backColor"  value="255, 0, 0">

scrollDelay Text scrolling delay (in milliseconds). 

Sample Usage:
           <param name="scrollDelay"  value="20">

hold Applet stops scrolling for a certain time when one news caption reaches the top of window (in milliseconds) 

Sample Usage:
           <param name="hold"  value="2000">

yAdjust vertical adjustment for text. 

Sample Usage:
           <param name="yAdjust"  value="1">

lineOffset horizontal adjustment for text. 

Sample Usage:
           <param name="lineOffset"  value="1">

textColor News content color using RGB triplet of 3 decimal numbers in the range of 0-255. 

Sample Usage:
           <param name="textColor"  value="255, 0, 0">

Back to Top


 
Sample Applet Tag in HTML file
<applet code="list_vscroll.class" width="136" height="200">
        <param name="confFile" vaule="N">
        <param name="fontFile" vaule="font_1_12.fnt">
        <param name="content_1" vaule="MW6 is hometown of high quality and reliable applets">
        <param name="url_1" vaule="http://www.mw6tech.com/demo.html">
        <param name="color_1" value="255, 255, 255">
        <param name="content_2" vaule="Download our evaluation version products for a try">
        <param name="url_2" vaule="http://www.mw6tech.com/demo.html">
        <param name="color_2" value="255, 255, 255">
        <param name="backColor" value="255, 255, 255">
        <param name="textColor" value="0, 0, 0"> 
        <param name="scrollDelay" value="55">
        <param name="hold" value="55">
        <param name="lineOffset" value="6">
        <param name="yAdjust" value="0">
        <param name="window" value="_parent">
</applet>

Back to AnyFontV

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