• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Significance of Start() and Stop() methods

 
Indira Devi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Can anyone please tell me about the start() and stop() methods when we have init() and destroy()?
Thanks in advance
Indira.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indira,
Here is an illustration...
Applet first called by browser ---------------- init()
-------------------------------------------- start()
Browser leaves Applet's page ------------------ stop()
Browser returns to Applet's page -------------- start()
Browser leaves Applet's page ------------------ stop()
Browser exits --------------------------------- destroy()
Start() and Stop() are for when the browser enters and exits the page. Init() and Destroy() are constructor and destructor. One major use I have seen for Start() and Stop() are for controlling threads that the applet uses... you don't want multiple threads taking up memory in the background of the browser...
HTH,
-Nate
[This message has been edited by Nathan Pruett (edited March 13, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic