FileDocCategorySizeDatePackage
MyCanvas.javaAPI DocExample296Sat Jan 05 11:47:16 GMT 2002None

MyCanvas

public class MyCanvas extends Canvas

Fields Summary
Constructors Summary
Methods Summary
public voidpaint(Graphics g)

      g.setColor(255, 0, 0);
      g.fillRect(0, 0, getWidth(), getHeight());
      g.setColor(255, 255, 255);
      g.drawString("Hello World!", 0, 0, g.TOP | g.LEFT);