Java
Programming and Technical
Numerical Ability
Number System
What is update method called?
Read Solution (Total 1)
-
- The update() method is defined by the AWT and is
called when your applet has requested that a
portion of its window be redrawn. The problem is
that the default version of update() first fills
an applet with the default background colour and
then calls paint(). You can override the update()
method. The paint() in this case will simply call
update().
public void update(Graphic g) {
//Redisplay your window here.
}
public void paint(Graphics g) {
update(g); // call to the update()method.
} - 8 years agoHelpfull: Yes(0) No(0)
Java Other Question