Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By Fubarable

Thread: How would I add an applet into a jframe

  1. #1
    Join Date
    Nov 2012
    Posts
    29
    Rep Power
    0

    Unhappy How would I add an applet into a jframe

    Just, How?
    Example?

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

    Default Re: How would I add an applet into a jframe

    I wouldn't. I would create my code in a way to create a JPanel, and then would add my JPanel to whatever I needed for it to display best.
    DarrylBurke likes this.

  3. #3
    Join Date
    Nov 2012
    Posts
    29
    Rep Power
    0

    Default Re: How would I add an applet into a jframe

    I just made this cool applet, and I wanted to see if I could make it run both ways. How?
    I tried to make the public static void main part with a JFrame, and add the applet, but it wont work! nothing shows!

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: How would I add an applet into a jframe

    What didn't you understand about Fubarable's response?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    Join Date
    Nov 2012
    Posts
    29
    Rep Power
    0

    Default Re: How would I add an applet into a jframe

    isnt he saying to re-code it in jpanel form?

Similar Threads

  1. JFrame to Applet
    By utsav1995 in forum New To Java
    Replies: 2
    Last Post: 05-31-2012, 04:41 PM
  2. JFrame to Applet?
    By Alerhau in forum New To Java
    Replies: 27
    Last Post: 08-14-2011, 02:38 AM
  3. Jframe pass variable to Applet
    By wayn in forum AWT / Swing
    Replies: 0
    Last Post: 03-10-2010, 09:54 AM
  4. Applet in JFrame, JMenu problem
    By Bill86 in forum New To Java
    Replies: 5
    Last Post: 12-28-2009, 04:20 AM
  5. JFrame vs Applet
    By baltimore in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2007, 03:24 AM

Tags for this Thread

Posting Permissions

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