How Does an Applet Work - PowerPoint PPT Presentation

About This Presentation
Title:

How Does an Applet Work

Description:

This is a program such as a browser or appletviewer. ... stop() Makes the applet 'inactive'; i.e. stops the applet from running temporarily. ... – PowerPoint PPT presentation

Number of Views:54
Avg rating:3.0/5.0
Slides: 4
Provided by: tcnj
Learn more at: https://owd.tcnj.edu
Category:
Tags: applet | inactive | work

less

Transcript and Presenter's Notes

Title: How Does an Applet Work


1
How Does an Applet Work?
  • An applet context is needed. This is a program
    such as a browser or appletviewer.
  • You tell the applet context to run an Applet,
    which your applet extends, by providing it with
    an HTML file.
  • That file identifies the bytecode that defines
    the applet to be instantiated and executed, and
    the height and width of the window in which the
    applet will appear.

2
What are the methods in Applet?
  • init() Initializes the applet and is often
    overriden by the programmer.
  • start() Makes the applet active i.e. starts
    the applet running.
  • stop() Makes the applet inactive i.e. stops
    the applet from running temporarily.
  • Destroy() Is called by the applet context when
    the user exits the applet context and destroys
    the applet.

3
A browser calling the Applet methods.
init( ) start() stop() destroy()
User returns to page
Write a Comment
User Comments (0)
About PowerShow.com