Results 1 to 2 of 2
  1. #1
    oyasunadev is offline Member
    Join Date
    Oct 2011
    Rep Power

    Question Embedding an Applet within an Application?

    Okay, so I've been professionally programming in Java for about 3 years now, and there's still much to learn. I'm trying to accomplish embedding a Java Applet within a Java Application. Basically I'm making a new Minecraft Classic client, and have 3 options. #1 being what I'd prefer to do.

    1) Embed an Applet within my JFrame.

    2) Create an web browser that will run the Applet.

    3) Learn everything about LWJGL and redraw everything. (Rendering Library Minecraft uses.)

    Again, I'd prefer to accomplish #1, so if anyone knows how to do this, please help me out. If you would like to get involved in the development talk to me on Skype: oliver123pok.

    Thanks for the help!

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: Embedding an Applet within an Application?

    1) Embed an Applet within my JFrame.
    Rewrite the applet so its GUI is contained in a Container of some kind.
    Then you would be able to add that container to a JFrame.
    If the applet code uses any of the applet context methods that are normally supported by a browser, you will need to provide the code to support those methods.

Similar Threads

  1. Embedding applet into HTML
    By vin_eets in forum AWT / Swing
    Replies: 3
    Last Post: 03-22-2011, 01:05 PM
  2. Embedding Applet into the center of fullscreen API
    By crikey in forum Advanced Java
    Replies: 3
    Last Post: 08-25-2010, 09:53 PM
  3. Embedding Applet into HTML?
    By Unome in forum Java Applets
    Replies: 1
    Last Post: 02-21-2009, 03:40 AM
  4. Replies: 7
    Last Post: 10-06-2008, 04:01 PM
  5. Embedding Word in an applet
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 02:34 PM

Posting Permissions

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