Difference between the paint() and repaint() methods?
Answer / 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 |
What is final variable?
Difference between linkedlist and arraylist.
What do you understand by java?
What is join () in java?
Can we convert stringbuilder to string in java?
When do you create an index?
Can we extend a class with private constructor?
What is string and its types?
What are inner classes or non static nested classes in java?
Why is static used?
What is the purpose of using java.lang.class class?
Can a class be private?