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...

What is update method and when it is called?

Answer Posted / mayank

The update() method is defined by the AWT and is
called when your applet has requested that a
portion of its window be redrawn. The problem is
that the default version of update() first fills
an applet with the default background colour and
then calls paint(). You can override the update()
method. The paint() in this case will simply call
update().

public void update(Graphic g) {
//Redisplay your window here.
}

public void paint(Graphics g) {
update(g); // call to the update()method.
}

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How thread scheduler schedule the task?

1058


What is jagged array in java?

1084


What type of variable is error flag?

1071


What is class array in java?

1052


What class allows you to read objects directly from a stream in java programming?

1076


What is the purpose of assert keyword used in jdk1.4.x?

1067


Can you declare a private method as static?

1153


Does string is thread-safe in java?

1087


What are three types of loops in java?

1136


How do you allocate memory to object?

1001


What are the methods used to implement for the key object in the hash map?

1040


What is an infinite loop in java? Explain with an example.

1040


What is command line argument

1195


Explain about transient variables in java?

1098


How do you check if a character in a string is a digit or letter?

1072