Share on Google+Share on Google+

AppletContext

Advertisement
AppletContext is an interface that is defined in the java.applet package.

AppletContext

     

AppletContext is an interface that is defined in the java.applet package. It is used by an applet to obtain information from the applet's environment through its methods. Applet runs within a context that is usually provided by a web browser or an applet viewer. Using that context, an applet is able to load bitmap images and audio clips.

Applets can also obtain additional services from an AppletContext?s object, which is returned from getAppletContext() method shown as:

  AppletContext Context = getAppletContext();

To get the AppletContext of the applet getAppletContext() method can be used shown as: 

Applet  AppletInstance = Context.getApplet(AppletName);

Read more at:

http:/www.roseindia.net/java/example/java/applet/Opening-a-URL-from-an-Applet.shtml

 

Advertisements

Posted on: April 3, 2006 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: AppletContext  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0