Add to Favourites
Post to:

Applets are small java programs that are primarily used in internet computing.They are small applications that are accessed on an internet server,transported over internet,automatically installed,run as part of a web document.When applet arises on the client it has limited access to resources ,so it can produce multimedia user interface and run complex computations without introducing risk of viruses or breaching data integrity.

Type: ppt



Usage of Java Applets in the internet computing has made many things understandable for many beginner level users like me. I always prefer to visit<See more

865 days 4 hours 52 minutes ago

Presentation Transcript Presentation Transcript


applets : applets Small java programs used in internet computing Event driven programs Window based programs Applets have limited access to clients resources. Runs on appletviewer or java enabled web browsers

When to use applets : When to use applets dynamic content is needed in web pages Flash contents or output like sounds,animations etc needed while displaying web pages. Need to create a program to be used by others and make it available on internet.

Difference with application programs : Difference with application programs Small programs Do not use main() method to start execution Cannot run independently Can run any program on local computer Accessing local data is strictly restricted. Cannot communicate with servers on other networks

Applet lifecycle : Applet lifecycle init() Born state Running state Idle state Dead state Start() Stop() Start() destroy() paint()

Applet skeleton : Applet skeleton 4 methods Init():applet enters born state Start():enters to running state Stop():enters to idle state Destroy():enters to dead state Paint():for display

Cont… : Cont… Import java.awt.*; Import java.applet .*; /* */ Public class Appletskel extends applet { Public void init() { // initialisation } Public void start() { //start or resume execution }

Con… : Con… Public void stop() { //suspends execution } Public void destroy() { //performs shutdown activities } Public void paint(Graphics g) { //display contents of window }

PowerPoint Presentation : THANK YOU

Neenu Prasad
Looking to Learn for computer subjects

Your Facebook Friends on WizIQ