summaryrefslogtreecommitdiffstats
path: root/libjava/javax/swing/border/EmptyBorder.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/javax/swing/border/EmptyBorder.java')
-rw-r--r--libjava/javax/swing/border/EmptyBorder.java62
1 files changed, 20 insertions, 42 deletions
diff --git a/libjava/javax/swing/border/EmptyBorder.java b/libjava/javax/swing/border/EmptyBorder.java
index 679c56fcae0..16cb7935be9 100644
--- a/libjava/javax/swing/border/EmptyBorder.java
+++ b/libjava/javax/swing/border/EmptyBorder.java
@@ -62,49 +62,27 @@ public class EmptyBorder extends AbstractBorder
this.top = top;
this.bottom = bottom;
}
-
- protected int l,r,b,t;
-
- public EmptyBorder()
- {
- }
-
- public EmptyBorder(int left,
- int right,
- int top,
- int bottom)
- {
- this.l = left;
- this.r = r;
- this.t = t;
- this.b = b;
- }
-
-
- public Insets getBorderInsets(Component c,
- Insets s)
- {
- if (s == null)
- s = new Insets(0,0,0,0);
-
- s.left = l;
- s.right = r;
- s.top = t;
- s.bottom = b;
-
- return s;
- }
-
- public boolean isBorderOpaque()
- {
- return false;
- }
+ public Insets getBorderInsets (Component c, Insets s)
+ {
+ if (s == null)
+ s = new Insets (0,0,0,0);
+
+ s.left = left;
+ s.right = right;
+ s.top = top;
+ s.bottom = bottom;
+ return s;
+ }
- public void paintBorder(Component c,
- Graphics g,
- int x, int y, int width, int height)
- {
- }
+ public boolean isBorderOpaque ()
+ {
+ return false;
+ }
+
+ public void paintBorder (Component c, Graphics g, int x, int y,
+ int width, int height)
+ {
+ }
}
OpenPOWER on IntegriCloud