javax.swing.plaf
Class BorderUIResource.EmptyBorderUIResource
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
javax.swing.plaf.BorderUIResource.EmptyBorderUIResource
- All Implemented Interfaces:
- Serializable, Border, UIResource
- Enclosing class:
- BorderUIResource
public static class BorderUIResource.EmptyBorderUIResource
- extends EmptyBorder
- implements UIResource, Serializable
An EmptyBorder
that also implements the
UIResource
marker interface. This is useful for
implementing pluggable look-and-feels: When switching the current
LookAndFeel, only those borders are replaced that are marked as
UIResource
. For this reason, a look-and-feel should
always install borders that implement UIResource
,
such as the borders provided by this class.
![[An illustration of EmptyBorder]](../border/doc-files/EmptyBorder-1.png)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BorderUIResource.EmptyBorderUIResource
public BorderUIResource.EmptyBorderUIResource(int top,
int left,
int bottom,
int right)
- Constructs an empty border given the number of pixels required
on each side.
- Parameters:
top
- the number of pixels that the border will need
for its top edge.left
- the number of pixels that the border will need
for its left edge.bottom
- the number of pixels that the border will need
for its bottom edge.right
- the number of pixels that the border will need
for its right edge.
BorderUIResource.EmptyBorderUIResource
public BorderUIResource.EmptyBorderUIResource(Insets insets)
- Constructs an empty border given the number of pixels required
on each side, passed in an Insets object.
- Parameters:
insets
- the Insets for the new border.