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 object data type?
What is the use of inner class?
why are there separate wait and sleep methods? : Java thread
extending thread class or implementing runnable interface. Which is better? : Java thread
What is run-time class and system class? what is their purpose?
What is the major drawback of internal iteration over external iteration?
What type of variable is gender?
What is the difference between overriding and overloading in OOPS.
0 Answers Axtria, ITC Indian Tobacco Company,
What are the differences between include directive and include action?
How do you check if a string is lexicographically in java?
What is JVM ?
4 Answers Phantom Technologies, TCS,
Why super is first line in java?