O'Reilly logo

PURE Java™ 2 by Kenneth Litwak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required