Originally Posted by copeg
I could be wrong, but I'm not so sure constructing a useable instance of the Applet class is straightforward. Applets typically have a context whose methods they use to do useful things (like load resources). Browsers offer this context. So does the appletviewer
executable. But it's not clear how you would roll your own.
Glancing at the source code Applet instances have a stub
variable that knows about the context, the document base etc. There is a setSub() method, but the documentation notes "Sets this applet's stub. This is done automatically by the system".