How To

How to Use a Java Applet

Contributor
By Wanda Richards
eHow Contributing Writer
(0 Ratings)

The popular Java Applets can add scrolling information across your website pages and chats, as well as other applications. Although compiling a Java Applet can be complicated, there are many Java Applets that are free and you simply add them to your existing web pages. This article guides you through the process of adding a Java Applet to web pages.

Difficulty: Moderate
Instructions

Things You'll Need:

  • Knowledge of HTML An existing website WinZip A Java-enabled browser

    Find the Java Applet you want

  1. Step 1

    Go to this web page:
    http://javaboutique.internet.com/cathome.html. Peruse the many Java Applets available and select the one that would be appropriate for your website.

  2. Step 2

    Download the files to your system. Click on the link after "Download".

  3. Step 3

    Save the .zip file to your screen by clicking the Save button.

  4. Step 4

    Open the WinZip program. On the lower left section of your screen, click on the Windows icon. Select Programs and then search for the WinZip program.
    When you locate it, click on WinZip and it will open on your screen.

  5. Step 5

    Open the WinZip file you downloaded. In WinZip, go to File > Open Archive.

  6. Step 6

    Navigate to the WinZip you downloaded to your system. Once you have found your file, click on it and it will automatically open. You should now see all the files that are contained in the WinZip file you downloaded from the Java Applet website.

  7. Step 7

    Extract the files. Click once on each of the files and then click the Extract button. It will prompt you on your desired location for the files. Put the files in the same directory where you placed the WinZip file.

  8. Add the Java Applet code to your HTML page

  9. Step 1

    Find the page that includes the Java Applet code. When you find it, click on the page and it should open.

  10. Step 2

    Read the instructions from the author. The author should have indicated any special instructions for adding the code to your web page. Follow all the instructions.

  11. Step 3

    This is a sample of the type of code you need to include on your web page:
    <APPLET codebase="." archive="chat.jar" code="CHAT.class" width=85% height=80%>
    <param name="server_side" value="/cgi-bin/chat.pl">
    <param name="config" value="config.txt">
    <param name="smiles" value="smiles.gif">
    Your browser is NOT Java enabled
    </APPLET>

  12. Step 4

    Insert the Java Applet code in the appropriate place in your existing HTML code.

  13. Step 5

    Put the code and all the files on the same server that contains your website's HTML pages. Put the additional files that were in the WinZip file in the directory that has your HTML page.

  14. Step 6

    Check your web page with the Java Applet. Go to the URL with which you normally access this particular web page. Wait a few seconds and you should see your Java Applet running on your web page.

Tips & Warnings
  • Each Java Applet is different. When you download the instructions, you will have to make sure you have followed the instructions of the original writer of the Java Applet.
  • Java Applets can slow down page loading.
Resources

Post a Comment

Post a Comment

eHow Article: How to Use a Java Applet

  • Have you done this? Click here to let us know.
I Did This

Related Ads

Internet
Virginia DeBolt,

Meet Virginia DeBolt eHow's Internet Expert.

Get Free Internet Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US

Demand Media
eHow_eHow Technology and Electronics