• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

using Applets in Applications?

 
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
 
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)
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic