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

Which are thin and thicK wrapper Class's in Java?

1 Answers  


explain about method overloading and method overriding with difficult examples

4 Answers  


Can we catch more than one exception in single catch block?

0 Answers  


How many tetrahedral voids are there in bcc?

0 Answers  


What are the topics in core java?

0 Answers  






Mention some features of java?

0 Answers  


Why is the type for real numbers called double?

0 Answers  


What is flag in python?

0 Answers  


How will you override default serialization mechanism in java

2 Answers  


What are the string methods in java?

0 Answers  


Name the packages in JDK?

2 Answers  


What technique is carried out to find out if a particular string is empty?

0 Answers  


Categories