Class java.awt.Canvas
All Packages This Package Previous Next
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.
-
Version:
-
1.5 08/17/95
-
Author:
-
Sami Shaio
-
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 This Package Previous Next