December 1999
Intermediate to advanced
816 pages
20h 27m
English
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 ...
Read now
Unlock full access