In an applet, is the start() or paint() method executed first?

Andre van Dalen

The initial order in which the lifecycle methods of applets are executed when loaded is:

init()
start()
paint()
And when done:
stop()
destroy()
This also holds when you call repaint() in the init() method. However, the init() method will not be called if you load a serialized applet.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact