EmptyBorderpublic class EmptyBorder extends AbstractBorder implements SerializableA class which provides an empty, transparent border which
takes up space but does no drawing.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans package.
Please see {@link java.beans.XMLEncoder}. |
Fields Summary |
---|
protected int | left | protected int | right | protected int | top | protected int | bottom |
Constructors Summary |
---|
public EmptyBorder(int top, int left, int bottom, int right)Creates an empty border with the specified insets.
this.top = top;
this.right = right;
this.bottom = bottom;
this.left = left;
| public EmptyBorder(Insets borderInsets)Creates an empty border with the specified insets.
this.top = borderInsets.top;
this.right = borderInsets.right;
this.bottom = borderInsets.bottom;
this.left = borderInsets.left;
|
|