A Canvas component represents a blank rectangular
area of the screen onto which the application can draw or from
which the application can trap input events from the user.
An application must subclass the Canvas class in
order to get useful functionality such as creating a custom
component. The paint method must be overridden
in order to perform custom graphics on the canvas.
Canvascomponent represents a blank rectangular area of the screen onto which the application can draw or from which the application can trap input events from the user.An application must subclass the
Canvasclass in order to get useful functionality such as creating a custom component. Thepaintmethod must be overridden in order to perform custom graphics on the canvas.