public final class InfoBorder extends AbstractBorder
Modifier and Type | Field and Description |
---|---|
static InfoBorder |
INSTANCE |
int |
paddingHeight |
int |
paddingWidth |
Constructor and Description |
---|
InfoBorder() |
InfoBorder(int paddingWidth,
int paddingHeight) |
Modifier and Type | Method and Description |
---|---|
static void |
configureField(JTextComponent field)
Configures specified text component as an information, that is,
gives it an
InfoBorder , makes it non editable, etc. |
Insets |
getBorderInsets(Component c) |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
public final int paddingWidth
public final int paddingHeight
public static final InfoBorder INSTANCE
public InfoBorder()
public InfoBorder(int paddingWidth, int paddingHeight)
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
paintBorder
in class AbstractBorder
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
public static void configureField(JTextComponent field)
InfoBorder
, makes it non editable, etc.