Answer Posted / mayank
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.
}
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
How do singleton patterns work?
Explain the difference between abstraction and encapsulation.
What is continuity of a function?
What is the static method?
Is intellij better than eclipse?
Define locale.
What if I write static public void instead of public static void in java?
What is the byte order of byte buffer?
What is the integer of 16?
What is assembly condition codes?
What is the char data type?
What is meant by bytecode?
What is time complexity java?
Is a case study a method or methodology?
What are the access modifiers in java?