Tuesday, 29 November 2011

Introduction - Applet


Java applets are actually compiled Java class files that are run on a page within a Web browser. Because the Web browser supplies the framework for retrieving and loading an applet and also supplies the main window holding the applet, Java applets are somewhat simpler than a true Java application.

A Java application does not require any additional software, such as a Web browser, other than the typical Java runt ime files included in the Java Developer's Kit.

Java applications are designed to be run in stand-alone mode on a client machine and therefore can be thought of as a known entity. Java applets, meanwhile, can be loaded from anywhere on the Internet, and therefore are subject to severe security restrictions.

Java applets currently are being used for advertising purposes because they provide the capability to include simple animation and sound in a Web advertisement.

Applet Capabilities


The java.applet package provides an API that gives applets some capabilities that applications do not have.

Here are some other things that current browers and other applet viewers let applets do:

·               Applets can usually make network connections to the host they came from.

·      Applets running within a Web browser can easily cause HTML documents to be displayed.


·               Applets can invoke public methods of other applets on the same page.

·        Applets that are loaded from the local file system (from a directory in the user's CLASSPATH) have none of the restrictions that applets loaded over the network do.


Posted By : Ruchita Pandya

No comments:

Post a Comment