Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 method will get invoked first in a stand alone application?

1 Answers  


Can we call a non-static method from inside a static method?

0 Answers  


Can a class be subclass of itself?

4 Answers  


Can we define private and protected modifiers for the members in interfaces?

0 Answers  


y cant i declare method like public final static show()

3 Answers  


What is garbage collection? Can it be forced to run?

0 Answers   Global Logic,


What are different types of arrays?

0 Answers  


What are the three types of design patterns?

0 Answers  


How do you do a line break in java?

0 Answers  


What is a bubble sort in java?

0 Answers  


What is meant by design patterns?

0 Answers  


we have two threads..both the threads are reading the data.. is there any need of synchronization there?...justify it?

4 Answers   IBM,


Categories