What is the purpose of repaint method? When should we use repaint method?

What is the purpose of repaint method? When should we use repaint method?

- The repaint() method is asynchronous.

- The repaint() requests an erase and redraw (update) after a small time delay.

- When you invoke repaint(), a message is sent to the native GUI requesting it to perform the action sometime in the distant future.

- This method does not invoke paint() method directly.
Use of update method. When is it invoked?
Use of update method - An update method is called on calling the repaint method...
How does the XOR drawing mode work? What are the properties of XOR drawing?
XOR drawing mode - setXORMode(Color c1) sets the paint mode of this graphics context to alternate between a graphics context's current color and the new specified color...
Explain how to load an image from the net into my applet
How to load an image from the net into my applet...
Post your comment