Grouppublic 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.Insets | getInsets()
return new Insets(border, border, border, border);
| public void | paint(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);
}
|
|