Results 1 to 4 of 4

Thread: Learning to write the Code for an applet

  1. #1
    Join Date
    Dec 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Learning to write the Code for an applet

    How do I learn to write the code for an applet published on the web? I am not seeking to copy the code, just learn it in order to generate similar results. Is that possible?

  2. #2
    Join Date
    Dec 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post

    What are you trying to do? Are you trying to write your own applet? If so, you need to learn the Java language. The best online tutorial is at:
    http://java.sun.com/docs/books/tutorial/index.html
    Or you can buy the books at amazon.com

    If you are trying to imitate another applet, you will need to contact the author to see the source code because java applets are compiled into bytecode. You can also find useful information about the applet by using the javaDoc tool found in the Java SDK available at http://java.sun.com/

  3. #3
    Join Date
    Dec 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Interested in learning to write the code for an applet

    Below is the applet information. I have contacted the author several times with no response.

    The following is the script for the applet:

    <applet archive="DuriusWaterPic.jar" width="346" height="120" code="DuriusWaterPic.class">
    <param name="cabbase" value="DuriusWaterPic.cab">
    <param name="dim" value="5">
    <param name="dotsize" value="7">
    <param name="logoheight" value="120">
    <param name="image" value="Images/newlogo.jpg">
    <param name="mouse" value="1">
    <param name="noise" value="2">
    <param name="delay" value="100">
    <param name="target" value="_self">
    <param name="bg" value="FFFFFF">
    <param name="reg" value="40953303">
    </applet>

    I would be greatful if you would give specific resources as how to write similar applets.

    Thanks for your help

  4. #4
    Join Date
    Dec 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That is not the code. It is just the parameter variable configurations. The main class for the applet is located at "DuriusWaterPic.class". That is where the actual code is, not on the web page. The only way to imitate the applet is to obtain the source code from the author, or to start from scratch. If you want to create an instance of the applet on your page, paste the code into your page, and change the archive and code attributes of the applet tag to absolute URLs instead of relative URLs.
    Last edited by mattZ; 12-26-2004 at 08:07 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •