I'm not sure if it's an applet issue (I don't deal with applets too much), but you should be able to call the main function as you would any other static function.
So, if your class was called TestClass, you would run the function with:
TestClass.main(null);
The null argument is necessary since the standard argument set for the main function is String[] args.
I know this works outside an applet. Let me know if that works for you in an applet.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.