Module java.desktop
Package java.awt

Class Canvas

java.lang.Object
java.awt.Component
java.awt.Canvas
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Canvas extends Component implements Accessible
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.

Since:
1.0
See Also: