File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Applets running out of a browser!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applets running out of a browser!!" Watch "Applets running out of a browser!!" New topic

Applets running out of a browser!!

Charlie Boss
Ranch Hand

Joined: May 22, 2001
Posts: 44
my applet currently runs in a browser but i want to make it so it runs out of the browser when its uploaded so it looks like an application on its own...
what do i have to add to my applet to achieve this.. thanx

Java Rawks
Angela Lamb
Ranch Hand

Joined: Feb 22, 2001
Posts: 156
Add a main method to your class that calls the functions you used to initialize the applet.
public static void main(String[] args)
start(); // only needed if your applet overrides this method

[This message has been edited by Angela Ann (edited June 08, 2001).]
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Actually, you are going to need somewhere to display your applet, too...

This code will work for the majority of Applets... however, if your applet uses parameters, you are going to have to find a different way to set them, and some Applet specific methods will not work as an application ( getImage() to name one... you have to use Toolkit.getDefaultToolkit().getImage() to get an Image in an application... ).


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Applets running out of a browser!!
It's not a secret anymore!