public class BorderHelper extends Object
Borders to
JComponents.
| Constructor and Description |
|---|
BorderHelper()
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addEmptyBorder(JComponent
Add an empty border to the specified component by creating a
CompoundBorder from the old border of the component and a new empty border.
|
static void |
addEmptyBorder(JComponent
Add an empty border to the specified component by creating a
CompoundBorder from the old border of the component and a new empty border.
|
public static void addEmptyBorder(JComponentc, int s)
CompoundBorder from the old border of the component and a new empty border.
c - the component to add a border to
s - the size for all four directions
public static void addEmptyBorder(JComponentc, int top, int left, int bottom, int right)
CompoundBorder from the old border of the component and a new empty border.
c - the component to add a border to
top - the top size
left - the left size
bottom - the bottom size
right - the right size