Package edu.cnu.mdi.component
Class CommonBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
edu.cnu.mdi.component.CommonBorder
- All Implemented Interfaces:
Serializable,Border
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.border.TitledBorder
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BorderwithEmptyBorder(String title, int size) Create a common border with an empty border around itMethods inherited from class javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, paintBorder, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePositionMethods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Field Details
-
etched
-
-
Constructor Details
-
CommonBorder
public CommonBorder() -
CommonBorder
-
-
Method Details
-
withEmptyBorder
Create a common border with an empty border around it- Parameters:
title- the titlesize- the size of the empty border in pixels- Returns:
- the compound border
-