home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Developer's Companion
/
Java Developer's Companion.iso
/
Javacup
/
PR8ADPL7.TAR
/
productivity_tools
/
PR8ADPL7
/
SpacedPanel.java
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Java Source
|
1996-05-23
|
357 b
|
16 lines
// SpacedPanel.java
// Just like a normal panel, but with a bit more breathing room
import java.awt.Panel;
import java.awt.Insets;
public class SpacedPanel extends Panel
{
int x,y;
SpacedPanel() { x = y = 3; }
SpacedPanel(int s) { x = y = s; }
SpacedPanel(int sx, int sy) { x = sx; y = sy; }
public Insets insets() { return new Insets(y,x,y,x); }
}