Sarish, Actually, yes... you can put a main() method in an applet. The only time I have seen this done is to be able to run a program as either an applet or an application, though usually all the main() method does then is to create a frame, add a windowListener to it, add the applet to the frame, and start the applet. Hope this helps, Nathan
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads