FileDocCategorySizeDatePackage
Drawing.javaAPI DocExample656Sun Feb 22 18:21:50 GMT 1998None

Drawing

public class Drawing extends Frame

Fields Summary
Constructors Summary
public Drawing()

  setTitle( "Drawing" );
      setSize( 400, 300 );
      setVisible( true );
   
Methods Summary
public voidpaint(java.awt.Graphics g)

  g.drawLine( 10, 30, 100, 200 );
      g.setColor( Color.red );
      g.drawRect( 10, 30, 50, 50 );
      g.setColor( Color.blue );
      g.fillRect( 100, 100, 30, 40 );
      g.setColor( Color.green );
      g.drawString( "Hello", 300, 150 );