5. What is an Applet..
● An Applet is any small application that
performs one specific task that runs within
the scope of a larger program ,often as a
plug-in.
● An Applet typically refers to java applets.
Group: Protocol Eagle eye 5
6. Java Applet..
● Java applet is a program, that can be
embedded into HTML pages.
● Java applets run on java enable web
browsers,such as Mozilla and Internet explorer.
● Applet is designed to run remotely on the client
browser, so there are some restrictions on it.
● Applets are used to make web site more
dynamic and entertaining.
Group: Protocol Eagle eye 6
7. How to run remotely with client browser.
Group: Protocol Eagle eye 7
9. Examples for Java Applets..
● The smiley applet.
● The pie chart applet.
● The chess game applet.
● The swatch applet.
● Computing prime classes
● The sound player applet.
Group: Protocol Eagle eye 9
10. Differences ; Applet & Application.
Applets
● (usually) small
● must extend java.applet.Applet
● have no main() method
● run inside a limited environment, usually a
web browser
● are started and stopped by the browser
●
Group: Protocol Eagle eye 10
11. Differences (cont..)
Application
● have more access to their host environment.
● usually larger and more capable
● are run by the end user (i.e. you!)
Group: Protocol Eagle eye 11
12. Life cycle of an applet..
● An applet can react to major events in the
following way.
It can initialize it self.
It can start running.
It can stop running.
It can preform a final cleanup (Destroy) in
preparation for being unloaded.
Group: Protocol Eagle eye 12
14. Signed applets vs. Unsigned applets.
● Applets can be signed using a security
certificate to indicate that they come from
a trusted source which capabilities to
access the client.
● unsigned applets launched using Java
Network Launch Protocol (JNLP) can
safely access the client with the user's
permission.
Group: Protocol Eagle eye 14
15. Applet Security (Restrictions).
● An applet is prevented to write anything on the
computer that is executing on
● It can read only documents located in web
space.
● It can't close down the web browser it is
executing in.
● It can't make network connection exceptions
to the server host from which is originated
Group: Protocol Eagle eye 15
16. Advantages Of Applet..
● are cross platform and can run on windows,
Mac OS and Linux
● can work all the version of java plug-in.
● are supported by most web browsers.
● are cashed in most web browsers, so will be
quick to load when returning to a web page.
● User can also have full access to the machine
if user allows
Group: Protocol Eagle eye 16
17. Disadvantages of Applet..
● Java plug-in is required to run applet.
● Java applet requires JVM, so first time it takes
significant start-up time.
● If applet is not already cached in the machine,
it will be downloaded from the internet and will
take time.
● Some browsers, such as mobile browsers
running ios or android don't run applet at all.
Group: Protocol Eagle eye 17
18. Overview : Java Applet
Applets are used to provide interactive
features to web applications that can be
provide by HTML alone.
They can capture mouse input and also have
controls like buttons or check boxes.
Group: Protocol Eagle eye 18
19. Overview (cont.)
● An applet is a java class.
● Its code is downloaded from a web server.
● For security reasons,the execution of an
applet is normally subject to restrictions.
Group: Protocol Eagle eye 19