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.

  •  Avaya Developer Showcase
     MSDN Spotlight
     PHP for Windows Showcase
    XML error: undefined entity at line 34
    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%.

    IBM Brings Developers Into the Cloud
    Apache at 10: You Can't Buy Us
    Microsoft's CodePlex Foundation Moving Forward
    Apple Claims 100,000 Apps, Google Analyzes Them
    Nokia Latest to Play Opera Mobile 10 Browser
    PayPal Opens Up Payment Platform to Devs
    Ubuntu Linux 9.10 'Karmic Koala' Starts Its Climb
    IBM Links Rational Developer Tools, Tivoli Apps
    Libraries Give Vista Apps a Windows 7 Look
    Ubuntu: The 'Default Alternative' to Windows?

    Delivering Web-based Embedded Fonts in CSS 3
    Adobe Helps PHP Developers Create Rich Internet Applications
    Java Developers Finding a Home at Adobe Flex
    Virtualization Delivers a Dynamic Infrastructure
    Consuming XML Web Services in iPhone Applications
    Build a More Agile Business with IBM
    POJO-Based Solutions for LDAP Access: One Good, One Better
    IBM Offers Enhanced Measurement and Management for Energy Usage
    IBM Helps Transformation to an Information-Based Enterprise
    Top Five Touch UI-Related Design Guidelines

    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, Reprints, Permissions, Privacy Policy.
    Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs