This method is called when the applet has requested that a portion of its window be redrawn. The
default version of update() first fills an applet with the default background color and then calls
paint(). The AWT calls the update method in response to a call to repaint. Whenever there is a change
in the background color in paint the user will experience a fluctuation of screen each time update()
is called—that is, whenever the window is repainted. The remedy of this problem is to override the
update() method so that it performs all necessary display activities. Then have paint() ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.