applet programming in java

12
VIDYA BHARTI EDUCATIONAL INSTITUTIONS APPLET PROGRAMMING IN JAVA http:// vidyabharti.in/

Upload: vidya-bharti

Post on 13-Apr-2017

58 views

Category:

Engineering


2 download

TRANSCRIPT

Page 1: Applet programming in java

VIDYA BHARTI EDUCATIONAL INSTITUTIONS

APPLET PROGRAMMING IN JAVA

http://vidyabharti.in/

Page 2: Applet programming in java

CONTENTSIntroduction to AppletHierarchy of AppletApplet vs Application programming

Applet Life CycleApplet ExécutionMeritsDemeritsConclusion

Page 3: Applet programming in java

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.

Page 4: Applet programming in java

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

Page 5: Applet programming in java

HIERARCHY OF APPLET

Object

Component

Container

Panel

Applet

jApplet

Page 6: Applet programming in java

APPLET LIFE CYCLEBorn

Running Idle

Dead

Begin Initialization

Stopped

Destroyed End

Display

Exit of Browser

stop()

start()paint()

start()

destroy()

init()

Running

Page 7: Applet programming in java

APPLET EXECUTIONApplet can be executed in: output:

HTML file

Standard tool ‘AppletViewer’

Page 8: Applet programming in java

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.

Page 9: Applet programming in java

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.

Page 10: Applet programming in java

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.

Page 11: Applet programming in java

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

Page 12: Applet programming in java