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


Partners & Affiliates











advertisement

waterpic



Applet parameters
width, height These are the standard applet tags describing the width and height of the applet in pixels.
image The filename of the image to use. This is relative to the html-document.
bg The color used for background when loading the image, in format rrggbb.
dim This describes how fast the water pans out. A value of two pans out immediately while at eight it takes a long time for the water to settle. Defaults to five.
dotsize This is the size in pixels of the 'drops' to be deployed in the water by the mouse.
ndotsize This is the size in pixels of the 'drops' to be deployed in the water by the 'Noise' feature.
mouse One or zero. Enables/disables the mouse-over effect. Defaults to one.
noise One or zero. Enables/disables the static noise effect. This causes static noise in the water without user interaction. Defaults to one.
url The target url when using the applet as a button or NavBar. If using a NavBar then this value is any number of target url's, separated by a space character. Omit this if the applet is not supposed to link to anything. * Tip - You can issue a mailto: command as you would in HTML, i.e. mailto:boef@usa.net! *
target This option lets the user specify which frame to open a target url in. If omitted, it targets the default frame.
orientation This is the orientation of the NavBar. v for vertical or h for horizontal. Case-sensitive.

FAQ.

Here are some common problems and their solution.

  • Applet works locally on my computer, but not when uploaded.

    If you see a message saying 'Can't find image http://www.test.com/sunset.jpg'
    then the image has not been uploaded to the correct folder, or the 'image' of the applet tag is incorrect. Most webservers treat filenames as case sensitive. It's very important that you consider this when filling in the 'image' parameter. For example, if your image is named 'SunSet.jpg' and your 'image' parameter reads
    'sunset.jpg' then you will probably get this problem when you upload your web.

  • When I run the applet, all I get is a black screen and no error message.

    If the width and height of the applet does not reflect the width and height of the image used, this is what happens. Make sure that width and height are correct.

  • I use several applets on the same page, nothing runs smoothly!

    You really shouldn't use more than one of these applets on the same page. These are cpu-intense applets, and the implementations of Java that are available do not seem to cope very well with having several intense applets run at the same time. Running two applets on the same page uses more than double cpu-time.
    This should be avoided at all costs!

  • When I've uploaded the applets I get a "java.lang.ClassFormat" or a "java.lang.MethodVerification"

    It's important when you upload the applet files that you do so in Binary mode. Uploading them in ASCII mode will ruin the files. The same goes for images.

  • What is this rrggbb format?

    The rrggbb format consists of three components: Red, Green and Blue
    in hexadecimal format. The hexadecimal format spans from 0 to f
    as opposed to the decimal format 0 to 9. There are two numbers for every color
    component, 00 to FF. This represents 0 to 255 in decimal format.
    The best way to get the color you want is to choose it in a good graphics program, for instance Photoshop or Paint Shop Pro. There you will probably see the three component values in decimal format. Make a note of them and
    click here for a conversion tool.


    Back to the waterpic 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.

  •  BlackBerry Application Development Resources
     Microsoft Visual Studio 2010 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%.

    ActiveState Debuts Open Source Business Suite
    Salesforce Offers Visual App Builder
    Codesion Steps Out From CVS's Shadow
    Facebook Makes Major PHP Push With HipHop
    Free Ride Over for Microsoft Azure Users
    Drupal Opens the Garden to Boost CMS
    Oracle Talks Plans for Linux, Solaris
    Azure Makes Cloud Computing Innovation Safe
    Red Hat's JBoss Looks Ahead
    Microsoft Readies Two Windows Phone Systems?

    Apple Surveying iPhone Developers? Happiness With The App Store
    HTML 5 Leaves Client Storage Open to Web Attacks
    Basic Market Forecasting with Encog Neural Networks
    Location-Aware App Review
    The Future of Web Content -- HTML5, Flash, and Mobile Apps
    Moonlight 3.0 Preview Offered For Rich Internet Apps on Linux and Unix
    Why a Moderator is Key in the Engineering Review Process, Part II
    Windows 7 Features Your Clients Will Need on Day One
    What Your Clients Will Ask About Windows 7
    Melissa Data Helps Developers Improve the Quality of Business Data

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


    The Network for Technology Professionals

    Search:

    About Internet.com

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