Originally Posted by
copeg
Do you know the name of the Applet class? If so, you should be able to construct an instance of the class, call the appropriate methods (eg init) then add it to a JPanel (which in turn you add to a JFrame)
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".