Calling applet from application
I need to call an applet from a main class in an application, how would i go about doing this. I'm pretty much a n00b at Java, but i managed to put together a game that i find entertaining and I'd like to be able to run it from an executable, but i need to create a application to call it from a main class so that i can run it through a native compiler.
try it yourself
Here, if you want you can download the code and the images and crap to try it for yourself
An applet is a panel descendant.
An applet can be used as a panel in a JFrame. You will have to modify
any parts that delas with getting images and stuff from the net, and to
invoke its init() and start()/stop() methods once you have established the
PS: your downloadable zip file is empty
Last edited by sjalle; 03-01-2005 at 01:27 AM.
Alright, I'll look into that. Thanks. I'll also have to look into the empty zip file thing too because when i tested it it worked fine, something must have gone wrong.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL