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

    Default convert JFrame to JApplet


    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
    Blog Entries
    Rep Power

    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, 01:31 AM
  2. JApplet in JFrame...
    By Rolf83 in forum Java Applets
    Replies: 8
    Last Post: 06-03-2011, 06: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, 05:29 AM
  4. JApplet.getGraphics() draws but JFrame doesn't
    By ChazZeromus in forum New To Java
    Replies: 5
    Last Post: 07-27-2009, 11:02 PM
  5. JFrame to JApplet or JApplet to JApplet
    By ramesh.8189 in forum AWT / Swing
    Replies: 13
    Last Post: 02-08-2009, 07: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