Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet - Swing  RSS feed

 
rama krishnan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to convert Applet Page into JInternalFrame page?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you asking about the actual page (in other words, HTML), or do you want to run the applet (i.e., the Java code) in the Frame?

The former would be quite tricky. For the latter, you can add the class that extends Applet to the Frame, since Applet extends Panel (after creating the object by calling its no-argument constructor). Then call init(), and then start() and stop() as appropriate. Be aware that you lose some applet features when doing this (namely, parameters and the applet context).
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!