• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Overriding stop() method in Applets

 
Michael Bruesch
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone please clarify what the stop() method does exactly? I've been overriding it in my applets to set threads to null and overriding the start() method to call thread.start(). Say the user scrolls the browser window down and the applet goes off screen, is the stop() method called then? And when the applet reappears on screen, is the start() method called then? And is what I'm doing correct? It seems to work fine, just wanted to make sure that was following good coding guidelines. Thanks!
 
Michael Bruesch
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Allright, I think I've figured it out for the most part. The thing that's confusing me is that the class Canvas has a paint method that requires overriding also. I tried overriding it in an Applet, but I'm not sure which paint method I overrided, the Applet's paint method or the Canvas's paint method. Please clarify before I go insane. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic