java.awt
Class Canvas
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
All Implemented Interfaces:
Serializable, ImageObserver, MenuContainer, Serializable
Canvas
public Canvas()
Initializes a new instance of Canvas
.
Canvas
public Canvas(java.awt.GraphicsConfiguration graphicsConfiguration)
Parameters:
addNotify
public void addNotify()
Creates the native peer for this object.
paint
public void paint(java.awt.Graphics gfx)
Repaints the canvas window. This method should be overriden by
a subclass to do something useful, as this method simply paints
the window with the background color.
Parameters:
Canvas
.