home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Symantec Visual Cafe for Java 2.5
/
symantec-visual-cafe-2.5-database-dev-edition.iso
/
VCafe
/
WDESAMPL.BIN
/
ColumnOfBoxes.java
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Java Source
|
1997-04-14
|
315 b
|
23 lines
import java.awt.*;
import java.awt.event.*;
public class ColumnOfBoxes extends Panel
{
public Insets getInsets()
{
return new Insets(100, 0, 100, 0);
}
ColumnOfBoxes(Color c, int n)
{
setLayout(new GridLayout(0, 1, 2, 2));
for(int i = 0; i < n; i++) {
add(new Box(c));
}
}
}