Class java.awt.Canvas
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.Canvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas

public class Canvas
extends Component
A Canvas component. This is a generic component which needs to be subclassed in order to add some interesting functionality.

Constructor Index

 o Canvas()

Method Index

 o addNotify()
Creates the peer of the canvas.
 o paint(Graphics)
Paints the canvas in the default background color.

Constructors

 o Canvas
  public Canvas()

Methods

 o addNotify
  public synchronized void addNotify()
Creates the peer of the canvas. This peer allows you to change the user interface of the canvas without changing its functionality.
Overrides:
addNotify in class Component
 o paint
  public void paint(Graphics g)
Paints the canvas in the default background color.
Parameters:
g - the specified Graphics window
Overrides:
paint in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index