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()
Constructs a new 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()
Constructs a new Canvas.

Methods

 o addNotify
 public 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

Submit a bug or feature