public final class SearchFieldBorder
extends javax.swing.border.AbstractBorder
| Constructor and Description |
|---|
SearchFieldBorder() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getBackground()
Returns the color of the background.
|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets) |
java.awt.Color |
getForeground()
Returns the color of the foreground.
|
boolean |
isBorderOpaque() |
static void |
main(java.lang.String[] args) |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
void |
setBackground(java.awt.Color background)
Sets the color of the background.
|
void |
setForeground(java.awt.Color foreground)
Sets the foreground color.
|
public void setForeground(java.awt.Color foreground)
foreground - the color of the foreground. Must not be null.public java.awt.Color getForeground()
public void setBackground(java.awt.Color background)
background - the background color. Must not be null.public java.awt.Color getBackground()
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.AbstractBorderpublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBorderpublic java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
getBorderInsets in class javax.swing.border.AbstractBorderpublic boolean isBorderOpaque()
isBorderOpaque in interface javax.swing.border.BorderisBorderOpaque in class javax.swing.border.AbstractBorderpublic static void main(java.lang.String[] args)