dcsimg

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.