Difference between the paint() and repaint() methods?
Answer Posted / ranganathkini
The paint method causes the component and and all its parts
to be painted on the Graphics context tat is passed in as
parameter.
If the component is a light-weight component, then a call to
the component's repaint method which invokes the paint
method as soon as possible. If the component is not a
light-weight component, then calling repaint is the same as
calling the update method.
| Is This Answer Correct ? | 19 Yes | 13 No |
Post New Answer View All Answers
What is a linkedhashmap java?
Why can we not override static method?
Is there a jre for java 11?
Can we sort set in java?
What is an object in java and how is it created?
What is the use of static class?
What is the purpose of static methods and static variables?
How many inner classes can a class have?
What is the most important feature of java? What is an interface?
Can we create an object of static class in java?
How java enabled high performance?
Which is the class in java?
What is the file extension for java?
Can you override private or static method in java?
What is a conditional equation?