FileDocCategorySizeDatePackage
Group.javaAPI DocJMF 2.1.1e869Mon May 12 12:20:50 BST 2003com.sun.media.ui

Group

public class Group extends Container

Fields Summary
protected int
border
Constructors Summary
public Group()

	this(null, 0);
    
public Group(LayoutManager layout)

	this(layout, 0);
    
public Group(LayoutManager layout, int border)

	setLayout(layout);
	this.border = border;
    
Methods Summary
public java.awt.InsetsgetInsets()

	return new Insets(border, border, border, border);
    
public voidpaint(java.awt.Graphics g)

	Dimension size = getSize();

	super.paint(g);
	if (border > 0) {
	    g.setColor(getBackground());
	    g.drawRect(0, 0, size.width - 1, size.height - 1);
	    g.draw3DRect(border - 2, border - 2, 
			 size.width - 1 - 2 * (border - 2),
			 size.height - 1 - 2 * (border - 2), false);
	}