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 |
Is string is a data type?
how to split string in java?
What is the meaning of find and replace?
What do you mean by byte code?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
what are the disadvantages of indexes in oracle?
0 Answers 3i Infotech, Wells Fargo,
How does synchronized modifier work?
What are the advantages of autoboxing?
Hi Friends, can u give code to convert ArrayList to HashMap and HashMap to ArrayList.
What restrictions are placed on method overriding?
give me the answer of this code class A extnds String This code we can write r not in Java? Explain?