Use of update method. When is it invoked?

Explain the use of update() method. When is it invoked?

- An update() method is called on calling the repaint method.
- The default implementation of the update() method clears the screen and calls the paint() method.
- The graphics instance is valid only within the context of the update method() returns.
- This method is called in response to repaint() request.
- The default implementation is provided by the component class which erases the background and calls the paint() 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...
Explain how to load an image from a file in a java application
How to load an image from a file in a java application - ImageIcon icon = createImageIcon('images/xyz.gif', 'text string');...
Post your comment