FileDocCategorySizeDatePackage
PaintDemo.javaAPI DocExample323Sat Apr 21 15:44:02 BST 2001None

PaintDemo

public class PaintDemo extends Component

Fields Summary
int
rectX
int
rectY
int
rectWidth
int
rectHeight
Constructors Summary
Methods Summary
public java.awt.DimensiongetPreferredSize()

		return new Dimension(100, 100);
	
public voidpaint(java.awt.Graphics g)


	    
		g.setColor(Color.red);
		g.fillRect(rectX, rectY, rectWidth, rectHeight);