home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-08-14 | 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); }
- }
-
-