Results 1 to 2 of 2
  1. #1
    Unome is offline Member
    Join Date
    Oct 2008
    Posts
    44
    Rep Power
    0

    Default Embedding Applet into HTML?

    Hi guys, I made an earlier thread on trying to make my java into an application, but I've decided to go simpler first. I want to embedd my applet into a window.

    Heres the deal. I have a java-game. It operates similar to donkey kong, but its called bowser kong ( goombas instead of barrels, bowser instead of donkey kong, luigi instead of mario, caged mario instead of peach). I made the code from scratch all by myself. The program operates in 4 classes, with one master test class. There are over 30 images I use in the applet. Heres my problem. How the hell do I put it into HTML?

    In the sample codes I saw you loaded your images straight into the HTML document, but my images are already being called within my class.... The class files I saw in examples are un-editable so I can't look to see how they did it... How do I embedd this into HTML? Any tutorials, guidance help, or ANYTHING would be awesome.

    Thanks in Advance!!!

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    First, make sure you're loading all your resources using classloaders and not File APIs.
    Then package everything in a .jar file.
    This can be put into a webpage using the <applet> tag.

Similar Threads

  1. Applet to HTML Driving me bonkers
    By proud2bhaole in forum Java Applets
    Replies: 6
    Last Post: 04-14-2010, 02:08 PM
  2. Embedding Word in an applet
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-25-2008, 02:34 PM
  3. Java Applet HTML
    By ownlol in forum Java Applets
    Replies: 4
    Last Post: 07-21-2008, 02:59 AM
  4. Chat Applet in HTML
    By Flynazn in forum Java Applets
    Replies: 3
    Last Post: 05-27-2008, 09:26 AM
  5. Create a Applet in the page HTML
    By Daniel in forum Java Applets
    Replies: 2
    Last Post: 07-04-2007, 07:52 AM

Posting Permissions

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