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.
- Canvas()
- addNotify()
- Creates the peer of the canvas.
- paint(Graphics)
- Paints the canvas in the default background color.
Canvas
public Canvas()
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
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