Applet Life Cycle - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

Applet Life Cycle

Description:

Applet class has built in methods. new Applets inherit these from the class. these methods can be overridden (replaced) by programmer-written methods with ... – PowerPoint PPT presentation

Number of Views:1248
Avg rating:3.0/5.0
Slides: 5
Provided by: CBA
Category:

less

Transcript and Presenter's Notes

Title: Applet Life Cycle


1
Applet Life Cycle
  • Ralph Westfall
  • February 2002

2
Built In Applet Methods
  • Applet class has built in methods
  • new Applets inherit these from the class
  • these methods can be overridden (replaced) by
    programmer-written methods with same name and
    added capabilities
  • init()
  • runs when Applet loads into browser

3
Built In Applet Methods - 2
  • start()
  • runs after init()
  • also runs when return to its web page
  • stop()
  • runs when user goes to another page
  • also runs when browser is minimized
  • destroy()
  • when browser is closed

4
Applet Life Cycle
  • init() runs when browser loads the web page with
    the Applet
  • browser calls start()
  • also runs when return to page
  • stop() runs when user leaves page
  • also runs when close browser
  • destroy() runs after stop() when user closes
    browser p. 446
Write a Comment
User Comments (0)
About PowerShow.com