aspose file tools*
The moose likes Beginning Java and the fly likes plz help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "plz help me" Watch "plz help me" New topic
Author

plz help me

Tamana Joshi
Greenhorn

Joined: May 23, 2005
Posts: 21
hi all,

plz tell me whether an applet can be converted into an application, if yes how/if no,why not?

thanks in advance

Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Yes, generally very easily. For many applets, you can just say

JFrame frame = new JFrame();
JApplet applet = new TheAppletClass();
frame.getContentPane().add(applet);
frame.setSize(600, 600);
frame.setVisible(true);
applet.init();
frame.validate();
applet.start();

Some applets (but not all) use applet-specific facilities like applet parameters, the AudioClip sound API, etc. These applets will need some small changes -- but generally nothing too major, just a small matter of coding.


[Jess in Action][AskingGoodQuestions]
Tamana Joshi
Greenhorn

Joined: May 23, 2005
Posts: 21
thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: plz help me