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
what are the states associated in the thread? : Java thread
What is the meaning of flag day?
What is classpath?
Can we create a constructor in abstract class?
What is difference between wait and notify in java?
What is the use of private static?
What happens if we override private method?
Write a java program to generate fibonacci series ?
What do you understand by copy constructor in java?
what type of questions asked for barclays technologies pune please send urgent
What is the Difference between Final Class && Abstract Class?
What are the procedures?
Is simpledateformat safe to use in the multithreaded program?
How to sort array of 0 and 1 in java?
Is null a string?