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.