Results 1 to 2 of 2
  1. #1
    hrayr is offline Member
    Join Date
    Jul 2011
    Posts
    9
    Rep Power
    0

    Default convert JFrame to JApplet

    Hello,

    I have made JFrame application, however I neet to have the same application as JApplet.
    I try to change expend JApplet and change InitComponent to Init however this does not work becouse it does not recignise pack();

    How can I do that?

    Thank you

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

    Default Re: convert JFrame to JApplet

    Better to avoid creating GUI's geared towards making top-level windows in the first place. Better to have your GUI's create JPanels, allowing you to plop them in a JFrame or JApplet or even JDialog or another JPanel as you see fit.

Similar Threads

  1. jframe inside japplet
    By ali.mohebbi in forum Java Applets
    Replies: 1
    Last Post: 07-19-2011, 12:31 AM
  2. JApplet in JFrame...
    By Rolf83 in forum Java Applets
    Replies: 8
    Last Post: 06-03-2011, 05:15 PM
  3. Making a JApplet into a JFrame into a .jar
    By aqualicy in forum Java Applets
    Replies: 2
    Last Post: 05-14-2010, 04:29 AM
  4. JApplet.getGraphics() draws but JFrame doesn't
    By ChazZeromus in forum New To Java
    Replies: 5
    Last Post: 07-27-2009, 10:02 PM
  5. JFrame to JApplet or JApplet to JApplet
    By ramesh.8189 in forum AWT / Swing
    Replies: 13
    Last Post: 02-08-2009, 06:14 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
  •