Advanced Topic: AppletContext and AppletStub
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 ...
Get Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.