applet programming in java

Post on 13-Apr-2017

59 Views

Category:

Engineering

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

VIDYA BHARTI EDUCATIONAL INSTITUTIONS

APPLET PROGRAMMING IN JAVA

http://vidyabharti.in/

CONTENTSIntroduction to AppletHierarchy of AppletApplet vs Application programming

Applet Life CycleApplet ExécutionMeritsDemeritsConclusion

INTRODUCTION TO APPLETSApplets are Small java programs used in internet programing.

Applets are associated with a Web page.

Applets are executed in a web browser.

It produces graphical user interface and graphical effects.

APPLET PROGRAMMINGApplets can be embedded in HTML pages and downloaded over the Internet .

Applets can only be executed inside a java compatible container, such as a browser or applet viewer .

Applets execute under strict security limitations that disallow certain operations .

Applet starts execution after init() method .

APPLET VS APPLICATION PROGRAMMING

HIERARCHY OF APPLET

Object

Component

Container

Panel

Applet

jApplet

APPLET LIFE CYCLEBorn

Running Idle

Dead

Begin Initialization

Stopped

Destroyed End

Display

Exit of Browser

stop()

start()paint()

start()

destroy()

init()

Running

APPLET EXECUTIONApplet can be executed in: output:

HTML file

Standard tool ‘AppletViewer’

MERITS Applets are portable, independent of

environment and browser .Java is safe, Applet environment is

secure. Applets loaded when needed, no

need to install or manage them .It is supported by most web browsers. Since Applets are cached in most of

the web browser, it is quickly loaded.

DEMERITSJava plug-in is required to run

applet. Java applet requires JVM so first

time it takes significant startup time.

If applet is not already cached in the machine, it will be downloaded from internet and will take time.

It is difficult to design and build good user interface in applets compared to HTML technology.

CONCLUSIONJava applets are supported by all

the web browsers.

Java applet are much safer in practice compared to code written in traditional languages.

Applet can be used to provide user interface and a variety of graphical effect for web pages. Also provide security features that protect users.

FOLLOW USvbei.blogspot.com

https://www.facebook.com/ggnVidyaBharti/

https://twitter.com/VidyaBharti19/

https://www.quora.com/Vidya-Bharti-13

http://www.slideshare.net/VidyaBharti3

https://www.instagram.com/vidyabharti.vbei/

https://www.tumblr.com/blog/vidyabharti

top related