FileDocCategorySizeDatePackage
PaintComponent.javaAPI DocExample383Sat Apr 21 15:44:02 BST 2001None

PaintComponent

public class PaintComponent extends JPanel

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

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


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