Difference between the paint() and repaint() methods?



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

Post New Answer

More Core Java Interview Questions

What is the intersection and union methods?

0 Answers  


Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why not with interface? Thanks in advance.

2 Answers  


how to print output with out using sop statements

5 Answers   UHG,


How many bits is a char?

0 Answers  


What are the types of relation?

0 Answers  






What is the difference between set and list?

5 Answers  


Which are different kinds of source code?

0 Answers  


What are the advantages of user defined functions?

0 Answers  


What is natural ordering in java?

0 Answers  


When should I use singleton?

0 Answers  


What is 'finally' method in Exceptions?

4 Answers  


What is final modifier?

0 Answers  


Categories