Canvas is a Component that provides a drawing area and is often used as a base class for new components.
public class java.awt.Canvas extends java.awt.Component { // Constructors public Canvas(); // Instance Methods public void addNotify(); public void paint (Graphics g); }
Constructs a Canvas object.
Component.addNotify()
Creates Canvas's peer.
Graphics context of component.
Empty method to be overridden in order to draw something in graphics context.
Component, Graphics