public static class BorderUIResource.LineBorderUIResource extends javax.swing.border.LineBorder implements UIResource, java.io.Serializable
LineBorder 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 two LineBorders]](../border/doc-files/LineBorder-1.png)
| Constructor and Description |
|---|
BorderUIResource.LineBorderUIResource(java.awt.Color color)
Constructs a LineBorderUIResource given its color.
|
BorderUIResource.LineBorderUIResource(java.awt.Color color,
int thickness)
Constructs a LineBorder given its color and thickness.
|
createBlackLineBorder, createGrayLineBorder, getBorderInsets, getBorderInsets, getLineColor, getRoundedCorners, getThickness, isBorderOpaque, paintBorderpublic BorderUIResource.LineBorderUIResource(java.awt.Color color)
color - the color for drawing the border.public BorderUIResource.LineBorderUIResource(java.awt.Color color, int thickness)
color - the color for drawing the border.thickness - the width of the line in pixels.