public final class Borders
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
attachBorder(javax.swing.JComponent component,
java.awt.Color outer,
java.awt.Color inner) |
static void |
attachErrorBorder(javax.swing.JComponent component)
Attaches an error border to the specified component.
|
static void |
attachWarningBorder(javax.swing.JComponent component)
Attaches a warning border to the specified component.
|
static void |
restoreBorder(javax.swing.JComponent component)
Restores the original border of a component.
|
public static void attachErrorBorder(javax.swing.JComponent component)
component
- a component to attach an error border to. Must not be null.java.lang.NullPointerException
- if component is null.public static void attachWarningBorder(javax.swing.JComponent component)
component
- a component to attach a warning border to. Must not be
null.java.lang.NullPointerException
- if component is null.public static void attachBorder(javax.swing.JComponent component, java.awt.Color outer, java.awt.Color inner)
public static void restoreBorder(javax.swing.JComponent component)
attachErrorBorder(JComponent)
or
attachWarningBorder(JComponent)
will have no effect.component
- a component to restore the border for. Must not be null.java.lang.NullPointerException
- if component is null.