Calling applet from application


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Calling applet from application

  1. #1
    Join Date
    Feb 2005
    Posts
    3

    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.

    Thanks

  2. #2
    Join Date
    Feb 2005
    Posts
    3

    try it yourself

    Here, if you want you can download the code and the images and crap to try it for yourself

    http://lunaticgames.tripod.com/id1.html

  3. #3
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560

    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
    JFrame.

    PS: your downloadable zip file is empty
    Last edited by sjalle; 03-01-2005 at 02:27 AM.
    eschew obfuscation

  4. #4
    Join Date
    Feb 2005
    Posts
    3
    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.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center