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 sortedmap in java?
How can we create a synchronized collection from given collection?
Is node a data type in java?
What are keywords give examples?
Explain about map interface in java?
What is java util list?
What is meant by event handling?
What do you mean by thread safe?
What is double data type?
What is the protected method modifier?
How to retrieve data from database in java using arraylist?
What is the immediate superclass of the Dialog class?