| Method from javax.swing.BorderFactory Detail: |
public static Border createBevelBorder(int type) {
return createSharedBevel(type);
}
Creates a beveled border of the specified type, using
brighter shades of the component's current background color
for highlighting, and darker shading for shadows.
(In a lowered border, shadows are on top and highlights
are underneath.) |
public static Border createBevelBorder(int type,
Color highlight,
Color shadow) {
return new BevelBorder(type, highlight, shadow);
}
Creates a beveled border of the specified type, using
the specified highlighting and shadowing. The outer
edge of the highlighted area uses a brighter shade of
the highlight color. The inner edge of the shadow area
uses a brighter shade of the shadow color. |
public static Border createBevelBorder(int type,
Color highlightOuter,
Color highlightInner,
Color shadowOuter,
Color shadowInner) {
return new BevelBorder(type, highlightOuter, highlightInner,
shadowOuter, shadowInner);
}
|
public static CompoundBorder createCompoundBorder() {
return new CompoundBorder();
}
Creates a compound border with a null inside edge and a
null outside edge. |
public static CompoundBorder createCompoundBorder(Border outsideBorder,
Border insideBorder) {
return new CompoundBorder(outsideBorder, insideBorder);
}
Creates a compound border specifying the border objects to use
for the outside and inside edges. |
public static Border createEmptyBorder() {
return emptyBorder;
}
Creates an empty border that takes up no space. (The width
of the top, bottom, left, and right sides are all zero.) |
public static Border createEmptyBorder(int top,
int left,
int bottom,
int right) {
return new EmptyBorder(top, left, bottom, right);
}
Creates an empty border that takes up space but which does
no drawing, specifying the width of the top, left, bottom, and
right sides. |
public static Border createEtchedBorder() {
return sharedEtchedBorder;
}
Creates a border with an "etched" look using
the component's current background color for
highlighting and shading. |
public static Border createEtchedBorder(int type) {
switch (type) {
case EtchedBorder.RAISED:
if (sharedRaisedEtchedBorder == null) {
sharedRaisedEtchedBorder = new EtchedBorder
(EtchedBorder.RAISED);
}
return sharedRaisedEtchedBorder;
case EtchedBorder.LOWERED:
return sharedEtchedBorder;
default:
throw new IllegalArgumentException("type must be one of EtchedBorder.RAISED or EtchedBorder.LOWERED");
}
}
Creates a border with an "etched" look using
the component's current background color for
highlighting and shading. |
public static Border createEtchedBorder(Color highlight,
Color shadow) {
return new EtchedBorder(highlight, shadow);
}
Creates a border with an "etched" look using
the specified highlighting and shading colors. |
public static Border createEtchedBorder(int type,
Color highlight,
Color shadow) {
return new EtchedBorder(type, highlight, shadow);
}
Creates a border with an "etched" look using
the specified highlighting and shading colors. |
public static Border createLineBorder(Color color) {
return new LineBorder(color, 1);
}
Creates a line border withe the specified color. |
public static Border createLineBorder(Color color,
int thickness) {
return new LineBorder(color, thickness);
}
Creates a line border with the specified color
and width. The width applies to all four sides of the
border. To specify widths individually for the top,
bottom, left, and right, use
#createMatteBorder(int,int,int,int,Color) . |
public static Border createLoweredBevelBorder() {
return createSharedBevel(BevelBorder.LOWERED);
}
Creates a border with a lowered beveled edge, using
brighter shades of the component's current background color
for highlighting, and darker shading for shadows.
(In a lowered border, shadows are on top and highlights
are underneath.) |
public static MatteBorder createMatteBorder(int top,
int left,
int bottom,
int right,
Color color) {
return new MatteBorder(top, left, bottom, right, color);
}
Creates a matte-look border using a solid color. (The difference between
this border and a line border is that you can specify the individual
border dimensions.) |
public static MatteBorder createMatteBorder(int top,
int left,
int bottom,
int right,
Icon tileIcon) {
return new MatteBorder(top, left, bottom, right, tileIcon);
}
Creates a matte-look border that consists of multiple tiles of a
specified icon. Multiple copies of the icon are placed side-by-side
to fill up the border area.
Note:
If the icon doesn't load, the border area is painted gray. |
public static Border createRaisedBevelBorder() {
return createSharedBevel(BevelBorder.RAISED);
}
Creates a border with a raised beveled edge, using
brighter shades of the component's current background color
for highlighting, and darker shading for shadows.
(In a raised border, highlights are on top and shadows
are underneath.) |
static Border createSharedBevel(int type) {
if(type == BevelBorder.RAISED) {
return sharedRaisedBevel;
} else if(type == BevelBorder.LOWERED) {
return sharedLoweredBevel;
}
return null;
}
|
public static TitledBorder createTitledBorder(String title) {
return new TitledBorder(title);
}
Creates a new titled border with the specified title,
the default border type (determined by the current look and feel),
the default text position (sitting on the top line),
the default justification (leading), and the default
font and text color (determined by the current look and feel). |
public static TitledBorder createTitledBorder(Border border) {
return new TitledBorder(border);
}
Creates a new titled border with an empty title,
the specified border object,
the default text position (sitting on the top line),
the default justification (leading), and the default
font and text color (determined by the current look and feel). |
public static TitledBorder createTitledBorder(Border border,
String title) {
return new TitledBorder(border, title);
}
Adds a title to an existing border,
with default positioning (sitting on the top line),
default justification (leading) and the default
font and text color (determined by the current look and feel). |
public static TitledBorder createTitledBorder(Border border,
String title,
int titleJustification,
int titlePosition) {
return new TitledBorder(border, title, titleJustification,
titlePosition);
}
Adds a title to an existing border, with the specified
positioning and using the default
font and text color (determined by the current look and feel). |
public static TitledBorder createTitledBorder(Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont) {
return new TitledBorder(border, title, titleJustification,
titlePosition, titleFont);
}
Adds a title to an existing border, with the specified
positioning and font, and using the default text color
(determined by the current look and feel). |
public static TitledBorder createTitledBorder(Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont,
Color titleColor) {
return new TitledBorder(border, title, titleJustification,
titlePosition, titleFont, titleColor);
}
Adds a title to an existing border, with the specified
positioning, font and color. |