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 method reference in java 8?
If you do not want your class to be inherited by any other class. What would you do?
Difference between current previous versions of Java?
What is the do while loop syntax?
Write a program to find maximum and minimum number in array?
What is the need of transient variables in Java ?
Which package is always imported by default?
What is string data?
What is argument in java?
What happens if a constructor is declared private?
Explain restrictions for using anonymous inner classes?
What is a percentage sign called?
What is constructor chaining and how is it achieved in java?
What is basic syntax?
What are variable names?