add a panel to an applet.

Discussion in 'Programming General' started by slashshot007, Dec 8, 2008.

add a panel to an applet.
  1. Unread #1 - Dec 8, 2008 at 8:14 PM
  2. slashshot007
    Joined:
    May 6, 2006
    Posts:
    164
    Referrals:
    0
    Sythe Gold:
    0

    slashshot007 Active Member

    add a panel to an applet.

    I created a lets call it a gamePanel, where i made a game, that runs fully functionally, when added to a JFrame.

    how do i add this to an applet, and have it work?
     
  3. Unread #2 - Dec 8, 2008 at 8:36 PM
  4. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    add a panel to an applet.

    I think you just need to extend JApplet instead of JFrame... I know i have converted programs to applets, and i think its easy as that... could be wrong though.
     
  5. Unread #3 - Dec 21, 2008 at 7:14 PM
  6. Buzzyboy
    Joined:
    Nov 28, 2008
    Posts:
    15
    Referrals:
    2
    Sythe Gold:
    0

    Buzzyboy Newcomer

    add a panel to an applet.

    You want to add gamePanel to your applet sand box? Or you want to add a frame to your Applet? You were very incoherent.

    Either way, I would assume the usual add() command should do it.
     
< Web Help, Paying. | Java Vs C# >

Users viewing this thread
1 guest


 
 
Adblock breaks this site