public class BorderBuilder
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
BorderBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
makeBottomBorder(int gap,
javax.swing.JComponent comp)
Create an empty bottom border on a component.
|
private void |
makeEmptyBorder(java.lang.String type,
int gap,
javax.swing.JComponent comp)
Create an empty border on a component.
|
void |
makeEqualBorder(int gap,
javax.swing.JComponent comp)
Create an empty equidistant border on a component.
|
void |
makeLeftBorder(int gap,
javax.swing.JComponent comp)
Create an empty left border on a component.
|
void |
makeRightBorder(int gap,
javax.swing.JComponent comp)
Create an empty right border on a component.
|
void |
makeTitledBorder(java.lang.String title,
javax.swing.JComponent comp)
Create a padded titled border on a component.
|
void |
makeTopBorder(int gap,
javax.swing.JComponent comp)
Create an empty top border on a component.
|
private static final long serialVersionUID
public void makeBottomBorder(int gap, javax.swing.JComponent comp)
gap
- The gap in pixels.comp
- The component on which to create the border.private void makeEmptyBorder(java.lang.String type, int gap, javax.swing.JComponent comp)
type
- The border type.gap
- The gap in pixels.comp
- The component on which to create the border.public void makeEqualBorder(int gap, javax.swing.JComponent comp)
gap
- The gap in pixels.comp
- The component on which to create the border.public void makeLeftBorder(int gap, javax.swing.JComponent comp)
gap
- The gap in pixels.comp
- The component on which to create the border.public void makeRightBorder(int gap, javax.swing.JComponent comp)
gap
- The gap in pixels.comp
- The component on which to create the border.public void makeTitledBorder(java.lang.String title, javax.swing.JComponent comp)
title
- The title of the border.comp
- The component on which to create the border.public void makeTopBorder(int gap, javax.swing.JComponent comp)
gap
- The gap in pixels.comp
- The component on which to create the border.