Interface and Class Details

Interface AppletContext

public abstract interface AppletContext
						

The AppletContext interface provides methods to obtain information about an applet's enclosing Web page, other applets, and the applet's environment. As shown here, your applet can obtain an AppletContext and then get information:

AppletContext ap = getAppletContext();
Sring appletName = ap.getApplet();
// Get the name of the current applet.
ap.showDocument("http://www.GradLibraray.edu/index.html");
// Replace the current web page with the one at this URL.
ap.setStatus("Check out complete");
// Update the text in the browser's status window.

Alternatively, you can use similar methods that are implemented in the java.applet.Applet class itself for some ...

Get PURE Java™ 2 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.