home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 November
/
Chip_1998-11_cd.bin
/
tema
/
Cafe
/
WDESAMPL.BIN
/
Box.java
< prev
next >
Wrap
Text File
|
1997-04-14
|
403b
|
26 lines
import java.awt.*;
import java.awt.event.*;
public class Box extends Component
{
Box(Color c)
{
setForeground(c);
}
public void paint(Graphics g)
{
super.paint(g);
g.setColor(getForeground());
g.fill3DRect(0, 0, getSize().width-1, getSize().height-1, true);
}
public Dimension getPreferredSize()
{
return new Dimension(64, 16);
}
}