Advanced Search

Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Using Java Applets

  1. #1
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default Using Java Applets

    I'm starting to get into the flow of Java, now all I need to do is find a way to incorperate it into my webpages. Do I use an <embed> tag, or what? I can't seem to find a definitive answer. I've seen tonnes of pages use these kind of applets before, so I'm just trying to jump onto the info-bahnwagon. (did I spell that right? anyway....)

    Thanks again
    - Mike

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    tons .... bandwagon ** hehe


    sorry bro .. i dont know much about java applets

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Uh-huh... Well, err... Thanks....
    - Mike

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,626
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Thumbs up

    Hi

    We can use the following 3 tags to deploy a Java Applet

    1. <applet> - Suitable for multi-browser environment

    2. <object> - Suitable for MS IE browser family

    3. <embed> - Suitable for Mozilla browser family
    --------------------------------------------------------------------------
    Examples
    1. <applet code=MyApplet.class width="200" height="200"></applet>

    2. <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width="200" height="200">
    <PARAM name="code" value="MyApplet.class">
    </OBJECT> *

    3. <embed code="MyApplet.class"
    width="200" height="200"
    type="application/x-java-applet;version=1.6.0"
    pluginspage="http://java.sun.com/javase/downloads"/>

    * If you have any doubts abt the classid i've used plz check this link
    http://java.sun.com/docs/books/tutor...objecttag.html


    If you want a more detailed view about the deployment of applets in the web pages please check out the following sites:

    1. http://java.sun.com/docs/books/tutor...ployindex.html

    2. http://www.w3.org/TR/1999/REC-html40...t/objects.html - Check out the deprecation issue of <applet> tag.

    Hope this will give you some direction to your goal.

    Regards

    Code Exploiter

  5. #5
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The object element alone can be used to run applets in at least MSIE, Opera, Netscape, and Firefox. See the Usenet thread How should I put an applet in a strict HTML page?.

    Mike

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by http://www.veiled-chameleon.com/weblog/archives/000004.html (adapted for HTML)
    Code:
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="196" width="460">
      <param name="codebase" value="java">
      <param name="code" value="panorama">
      <param name="panorama" value="http://www.veiled-chameleon.com/images/hikes/grandeur-peak/grandeur-peak-full-circle.jpg">
      <!--[if !IE]> -->
        <object codebase="java" classid="java:panorama.class" height="196" width="460">
          <param name="panorama" value="http://www.veiled-chameleon.com/images/hikes/grandeur-peak/grandeur-peak-full-circle.jpg">
        </object>
      <!-- <![endif]-->
    </object>
    That should do it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Thanks. I downloaded the program for sun overnight, and I can finally compile! (Believe me. That's not nearly as excited for you as it is for me )

    Again, thanks.
    - Mike

  8. #8
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,626
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Thumbs up

    hi mike

    I would suggest using Eclipse IDE for developing the programs. You can save your time a lot using this one.

    Regards

    Code Exploiter

  9. #9
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    http://www.veiled-chameleon.com/webl...es/000004.html (adapted for HTML)

    That should do it.
    That's inferior to what I posted. I believe we've discussed this in the past.

    Mike

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by mwinter
    That's inferior to what I posted.
    Sorry, I didn't see your post.
    I believe we've discussed this in the past.
    We have?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •