ColumnOfBoxespublic class ColumnOfBoxes extends Panel
Constructors Summary |
---|
ColumnOfBoxes(Color c, int n)
setLayout(new GridLayout(0, 1, 2, 2));
for(int i = 0; i < n; i++) {
add(new Box(c));
}
|
Methods Summary |
---|
public java.awt.Insets | getInsets()
return new Insets(100, 0, 100, 0);
|
|