Example usage for Java javax.swing.border TitledBorder fields, constructors, methods, implement or subclass
The text is from its open source code.
int | DEFAULT_POSITION Use the default vertical orientation for the title text. |
int | ABOVE_TOP Position the title above the border's top line. |
int | TOP Position the title in the middle of the border's top line. |
int | BELOW_TOP Position the title below the border's top line. |
int | ABOVE_BOTTOM Position the title above the border's bottom line. |
int | BOTTOM Position the title in the middle of the border's bottom line. |
int | BELOW_BOTTOM Position the title below the border's bottom line. |
int | DEFAULT_JUSTIFICATION Use the default justification for the title text. |
int | LEFT Position title text at the left side of the border line. |
int | CENTER Position title text in the center of the border line. |
int | RIGHT Position title text at the right side of the border line. |
int | LEADING Position title text at the left side of the border line for left to right orientation, at the right side of the border line for right to left orientation. |
TitledBorder(String title) Creates a TitledBorder instance. | |
TitledBorder(Border border) Creates a TitledBorder instance with the specified border and an empty title. | |
TitledBorder(Border border, String title, int titleJustification, int titlePosition) Creates a TitledBorder instance with the specified border, title, title-justification, and title-position. | |
TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color. | |
TitledBorder(Border border, String title) Creates a TitledBorder instance with the specified border and title. | |
TitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont) Creates a TitledBorder instance with the specified border, title, title-justification, title-position, and title-font. |
Font | getTitleFont() Returns the title-font of the titled border. |
void | setBorder(Border border) Sets the border of the titled border. |
void | setTitle(String title) Sets the title of the titled border. |
void | setTitleColor(Color titleColor) Sets the title-color of the titled border. |
void | setTitleFont(Font titleFont) Sets the title-font of the titled border. |
void | setTitleJustification(int titleJustification) Sets the title-justification of the titled border. |
void | setTitlePosition(int titlePosition) Sets the title-position of the titled border. |