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 final method in java?
How are variables stored?
How does java pattern compile work?
How do you sort arrays in java?
How is final different from finally and finalize?
What is the loop in java?
What is difference between local variable and global variable?
Can we have more than one package statement in source file ?
What is the difference between Java1.4 and Java1.5
What is array length?
What happens if main method is not static?
Do I need java on my computer?
How do you create an array in java?
What are different types of references?
What is a parameter in matrices?