Adblock breaks this site

add a panel to an applet.

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

  1. slashshot007

    slashshot007 Active Member

    Joined:
    May 6, 2006
    Posts:
    164
    Referrals:
    0
    Sythe Gold:
    0
    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?
     
  2. SuF

    SuF Legend
    Pirate Retired Global Moderator

    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
    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.
     
  3. Buzzyboy

    Buzzyboy Newcomer

    Joined:
    Nov 28, 2008
    Posts:
    15
    Referrals:
    2
    Sythe Gold:
    0
    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# >


 
 
Adblock breaks this site