public class BorderPainter
extends java.lang.Object
implements javax.swing.Painter<javax.swing.JComponent>
Custom painter for rectangle-shaped borders around components. Used for inactive text fields.
Modifier and Type | Field and Description |
---|---|
private java.awt.Color |
color |
Constructor and Description |
---|
BorderPainter(java.awt.Color color)
Creates a border painter.
|
Modifier and Type | Method and Description |
---|---|
void |
paint(java.awt.Graphics2D g,
javax.swing.JComponent component,
int width,
int height) |