• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert JApplet to application

 
maja neskovic
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made one JApplet and I would like to change it to application. I tried to do like on this url: Applet to Application but then I get errors because it doesn't recognize methods such as getContentPane(since I generated part of code from JApplet Form). Can anybody, please, explain me how to solve this?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the easy way is to have your code in a class that uses a JPanel.
you then add that panel to your applet

to make it into an app, simplyadd the same panel to a JFrame,
adding a few JFrame bits - defaultClose/size/location/visible etc
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic