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
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)
- Chris Stehno, SCPJ
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!