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 the difference between serial and throughput garbage collector?
How do you take thread dump in java?
Which collection is sorted in java?
What are the differences between wait() and sleep()?
What is mean by collections in java?
Explain exception chaining in java?
Is void a return type?
Where to store local variables?
Can inner class final?
How will you reverse a singly-link list?
What is an abstract method in java programming?
How finally used under exception handling?
What is the difference between break and continue statements?
What is garbage collection? What is the process that is responsible for doing that in java?
What is a class variable?