When an applet is created, it's given a stub via its setStub() method. The stub is the interface between the applet and the browser. You don't have to deal directly with the stub because the Applet class implements methods that use it.
Here are AppletStub's methods:
appletResize(width, height)— resizes the applet
getAppletContext()— gets the applet's context
getCodeBase()— gets the code base URL
getDocumentBase()— gets the document base URL
getParameterName()— gets an applet parameter
isActive()— determines if the applet is active
The applet context corresponds to the applet's environment and it can be used to show status, to load other documents, and to get access to other applets. The AppletContext's ...