File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applets running out of a browser!!" Watch "Applets running out of a browser!!" New topic
Author

Applets running out of a browser!!

Charlie Boss
Ranch Hand

Joined: May 22, 2001
Posts: 44
hello,
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)
{
init();
start(); // only needed if your applet overrides this method
}

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

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

HTH,
-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applets running out of a browser!!