> Darshan
Inu of ng Tech fo Dona Ses
Unit 1- Java Applets
Applet Programming
Applets are small Java applications that can be accessed on an Internet server, transported over
Internet, and can be automatically installed and run asa part of a web document.
‘An Applet is a Java class that extends the java.applet.Applet class.
‘An Applet class does not have any main() method.
It is viewed using JVM. The JVM can use either a plug-i
of the Web browser or a separate runtime
environment to run an applet application that is “appletviewer”.
Applets are designed to be embedded within an HTML page.
When a user views an HTML page that contains an applet, the code for the applet is downloaded to
the user's machine.
Local Applet and Remote Applet
Local Applet
Remote Applet
* Itis developed and stored in local system.
Itis developed and stored on remote system.
* The web page will search the local system
directories, find the local applet and execute it.
The web page will require an internet
connection to locate and load the remote
applet from the remote computer.
* Execution of local applet does not require
internet connection.
Execution of remote applet must require
internet connection.
* Example: