1.

Why Do You Canvas?

Answer»

The Canvas class of java.awt is used to PROVIDE CUSTOM drawing and event handling. It provides a general GUI component for drawing images and text on the SCREEN. It does not SUPPORT any drawing methods of its own, but provides access to a Graphics object through its paint() method. The paint() method is invoked upon the creation and update of a canvas so that the Graphics object ASSOCIATED with a Canvas object can be updated.

The Canvas class of java.awt is used to provide custom drawing and event handling. It provides a general GUI component for drawing images and text on the screen. It does not support any drawing methods of its own, but provides access to a Graphics object through its paint() method. The paint() method is invoked upon the creation and update of a canvas so that the Graphics object associated with a Canvas object can be updated.



Discussion

No Comment Found