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 init() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "init() method" Watch "init() method" New topic
Author

init() method

tilak kumar
Greenhorn

Joined: Feb 16, 2005
Posts: 15
instead of init() mathod can we declare our own constructor
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

You can define a contructor, yes, but there are things you can only do in init(). In particular, your "AppletStub" won't be set, yet, while the constructor is running, so you can't get applet parameters, load images from URLs, load sound files, etc. All of these things have to be deferred until init() time.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: init() method