answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is update method called in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the task of the main method in java platform?

It is the method that gets called when a Java application is started.


When is update method called?

Whenever a screen needs redrawing (e.g., upon creation, resizing, validating) the update method is called. By default, the update method clears the screen and then calls the paint method, which normally contains all the drawing code.


What is function in java terminology?

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.


Where can one update their Java player online?

Someone can update their java player online from a number of websites such as the official java website. To update java player, someone needs to visit the java website and select update from the home page. There will be a prompt to download and install the latest version of java. After that is done, the player will be updated.


How do you install java for RuneScape?

Download the new java update and install. It should be Version 7 Update 7.


Why should the java main method has the return type as void?

A void method is one that returns no value. The Java main() method is the first method to be called, therefore it doesn't need to return a value to another Java method, therefore it is declared as void. If something needs to be returned to the operating system, this is done differently, not by "returning a value" in the sense of Java.


How is a method called in java?

method header and method body There are two ways to call a method; the choice is based on whether the method returns a value or not.


What is overridnig method and overlording method in java?

There is no such thing as overlording in Java.


What is the current version of JDK?

As of February 2, 2012 the latest public release of the standard edition of Java is Java Standard Edition(SE) 7 update 3.


What is inline declaration?

It is a declaration of java class in method body which called "inner class"


How do you implement RMI in Java programming?

You download Rmi Updater then load it on and update it and then its done boom!


What is the difference between paint and repaint methods of java?

The paint method is where actual painting occurs. If you want to change the way a Component is drawn, you should override this method. The repaint method typically just tells your Component that it should call its paint method as soon as it can. This is the method you should call to force a Component to update itself. The Java API warns not to ever directly call the paint method, mostly for efficiency reasons.