Home » Unlabelled » When is update method called? | Java Applets
Wednesday, 15 February 2012
When is update method called? | Java Applets
Whenever a screen needs redrawing (e.g., upon creation, resizing, validating) the update method is called. By default, the update method clears the screen and then calls the paint method, which normally contains all the drawing code.
No comments:
Post a Comment