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 |
Which method will get invoked first in a stand alone application?
Can we call a non-static method from inside a static method?
Can a class be subclass of itself?
Can we define private and protected modifiers for the members in interfaces?
y cant i declare method like public final static show()
What is garbage collection? Can it be forced to run?
What are different types of arrays?
What are the three types of design patterns?
How do you do a line break in java?
What is a bubble sort in java?
What is meant by design patterns?
we have two threads..both the threads are reading the data.. is there any need of synchronization there?...justify it?