Results 1 to 2 of 2

Thread: Applet in a GUI

  1. #1
    serfster is offline Member
    Join Date
    Jun 2008
    Posts
    8
    Rep Power
    0

    Default Applet in a GUI

    I am just starting to learn Java and I was wondering if it is possible to insert an applet into a regular GUI application, and if so, what is the code that will do this?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    You don't want to do this. What you should think about doing is to code a Swing application that ultimately creates a JPanel. Then should you decide to use this as a JApplet, you simply add the JPanel to a JApplets contentPane. Likewise if you want to use this in a stand-alone GUI app, you simply add the JPanel to a JFrame.

Similar Threads

  1. applet
    By amith in forum AWT / Swing
    Replies: 1
    Last Post: 05-16-2008, 03:24 AM
  2. applet lifecycle
    By babua_87 in forum Java Applets
    Replies: 1
    Last Post: 12-04-2007, 10:42 PM
  3. First Applet HELP????
    By nvidia in forum New To Java
    Replies: 0
    Last Post: 08-13-2007, 10:11 PM
  4. Applet
    By kapoorje in forum Java Applets
    Replies: 0
    Last Post: 07-24-2007, 04:06 PM
  5. Replies: 4
    Last Post: 06-08-2007, 06:15 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
  •