• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using Applets in Applications?

 
Mark Jutras
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to use an Applet class inside an
application. For example, I would like to create
a game which will use an Applet class to produce
a special effect on the image used.
Thanx in advance!
Mark
 
Chris Stehno
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, applets are components similar to any of the other components. If you are only going to use it in an application, you may want to look at JApplet.
Also, applets do unfortunatly expect some environment information (AppletStub and AppletContext) that is normally provided by the browser. You can implement these interfaces and simulate them yourself. I did it once and it is not too bad.
If you get stuck or want copies of the classes that I used just email me and I'll be happy to send them along.
Hope this helps.

------------------
Chris Stehno (Sun Certified Programmer for the Java 2 Platform)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic