How Does an Applet Work PowerPoint PPT Presentation

presentation player overlay
About This Presentation
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