Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython
by Richard Hightower
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access