FileDocCategorySizeDatePackage
drawing3dRects.javaAPI DocExample855Mon Mar 24 02:01:18 GMT 1997None

drawing3dRects

public class drawing3dRects extends Frame

Fields Summary
Constructors Summary
drawing3dRects()

        super ("Drawing 3dRects");
        resize (175, 225);
    
Methods Summary
public static voidmain(java.lang.String[] args)

        Frame f = new drawing3dRects ();
        f.show();
    
public voidpaint(java.awt.Graphics g)

      g.translate (insets().left, insets().top);
	g.setColor (Color.gray);
	g.draw3DRect (25, 10, 50, 75, true);
	g.draw3DRect (25, 110, 50, 75, false);
	g.fill3DRect (100, 10, 50, 75, true);
	g.fill3DRect (100, 110, 50, 75, false);