Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.plaf.basic.BasicBorders
public class BasicBorders
extends Object
Nested Class Summary | |
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
Method Summary | |
static Border |
|
static Border |
|
static Border |
|
static Border |
|
static Border |
|
static Border |
|
static Border |
|
static Border |
|
static Border |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public static Border getButtonBorder()
Returns a border for drawing push buttons.The colors of the border are retrieved from the
UIDefaults
of the currently active look and feel using the keys“Button.shadow”
,“Button.darkShadow”
,“Button.light”
, and“Button.highlight”
.
![]()
- Returns:
- a
BorderUIResource.CompoundBorderUIResource
whose outer border is aBasicBorders.ButtonBorder
and whose inner border is aBasicBorders.MarginBorder
.
public static Border getInternalFrameBorder()
Returns a border that is composed of a raised bevel border and a one-pixel thick line border.
![]()
The colors of the border are retrieved from the
UIDefaults
of the currently active look and feel using the keys“InternalFrame.borderShadow”
,“InternalFrame.borderDarkShadow”
,“InternalFrame.borderLight”
,“InternalFrame.borderHighlight”
, and (for the inner one-pixel thick line)“InternalFrame.borderColor”
.
public static Border getMenuBarBorder()
Returns a border for drawing a two-pixel thick separator line below menu bars.The colors of the border are retrieved from the
UIDefaults
of the currently active look and feel using the keys“MenuBar.shadow”
and“MenuBar.highlight”
.
![]()
- Returns:
- a
BasicBorders.MenuBarBorder
.
- See Also:
JMenuBar
public static Border getProgressBarBorder()
Returns a two-pixel thick, greenLineBorderUIResource
. This is so ugly that look and feels better use different borders for their progress bars, or they will look really terrible.
![]()
public static Border getRadioButtonBorder()
Returns a border for drawing radio buttons.The colors of the border are retrieved from the
UIDefaults
of the currently active look and feel using the keys“RadioButton.shadow”
,“RadioButton.darkShadow”
,“RadioButton.light”
, and“RadioButton.highlight”
.
![]()
- Returns:
- a
BorderUIResource.CompoundBorderUIResource
whose outer border is aBasicBorders.RadioButtonBorder
and whose inner border is aBasicBorders.MarginBorder
.
public static Border getSplitPaneBorder()
Returns a border for drawing a one-pixel thick border around split panes that are interrupted where the divider joins the border.The colors of the border are retrieved from the
UIDefaults
of the currently active look and feel using the keys“SplitPane.darkShadow”
and“SplitPane.highlight”
.
![]()
![]()
- Returns:
- a
BasicBorders.SplitPaneBorder
.
- See Also:
JSplitPane
,getSplitPaneDividerBorder()
public static Border getSplitPaneDividerBorder()
Returns a border for drawing a one-pixel thick border around the divider of split panes.The colors of the edges that are adjacent to the child components of the
JSplitPane
are retrieved from theUIDefaults
of the currently active look and feel using the keys“SplitPane.darkShadow”
and“SplitPane.highlight”
. The color of the other two edges is the background color of the divider.
![]()
- Returns:
- an instance of
SplitPaneDividerBorder
, which is not a public API class of this package.
- Since:
- 1.3
- See Also:
JSplitPane
,BasicSplitPaneDivider
,getSplitPaneBorder()
public static Border getTextFieldBorder()
Returns a border for drawing a border around a text field that makes the field appear as etched into the surface.The colors of the border are retrieved from the
UIDefaults
of the currently active look and feel using the keys“TextField.shadow”
,“TextField.darkShadow”
,“TextField.light”
, and“TextField.highlight”
.
![]()
- Returns:
- an instance of
BasicBorders.FieldBorder
.
- See Also:
JTextField
,JTextComponent
public static Border getToggleButtonBorder()
Returns a border for drawing toggle buttons.The colors of the border are retrieved from the
UIDefaults
of the currently active look and feel using the keys“ToggleButton.shadow”
,“ToggleButton.darkShadow”
,“ToggleButton.light”
, and“ToggleButton.highlight”
.
![]()
- Returns:
- a
BorderUIResource.CompoundBorderUIResource
whose outer border is aBasicBorders.ToggleButtonBorder
and whose inner border is aBasicBorders.MarginBorder
.