FileDocCategorySizeDatePackage
Box.javaAPI DocExample378Wed Apr 19 11:22:18 BST 2000None

Box

public class Box extends Component

Fields Summary
Constructors Summary
Box(Color c)

    setForeground(c);
  
Methods Summary
public java.awt.DimensiongetPreferredSize()

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

    super.paint(g);
    g.setColor(getForeground());
    g.fill3DRect(0, 0, getSize().width-1, getSize().height-1, true);