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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is method reference in java 8?

1089


If you do not want your class to be inherited by any other class. What would you do?

1069


Difference between current previous versions of Java?

1079


What is the do while loop syntax?

1082


Write a program to find maximum and minimum number in array?

1045


What is the need of transient variables in Java ?

1115


Which package is always imported by default?

1144


What is string data?

1033


What is argument in java?

1055


What happens if a constructor is declared private?

1073


Explain restrictions for using anonymous inner classes?

1140


What is a percentage sign called?

1190


What is constructor chaining and how is it achieved in java?

1238


What is basic syntax?

1106


What are variable names?

1016