Java javax.swing.border TitledBorder fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.border TitledBorder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.border TitledBorder.

The text is from its open source code.

Field

intDEFAULT_POSITION
Use the default vertical orientation for the title text.
intABOVE_TOP
Position the title above the border's top line.
intTOP
Position the title in the middle of the border's top line.
intBELOW_TOP
Position the title below the border's top line.
intABOVE_BOTTOM
Position the title above the border's bottom line.
intBOTTOM
Position the title in the middle of the border's bottom line.
intBELOW_BOTTOM
Position the title below the border's bottom line.
intDEFAULT_JUSTIFICATION
Use the default justification for the title text.
intLEFT
Position title text at the left side of the border line.
intCENTER
Position title text in the center of the border line.
intRIGHT
Position title text at the right side of the border line.
intLEADING
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.

Constructor

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.

Method

FontgetTitleFont()
Returns the title-font of the titled border.
voidsetBorder(Border border)
Sets the border of the titled border.
voidsetTitle(String title)
Sets the title of the titled border.
voidsetTitleColor(Color titleColor)
Sets the title-color of the titled border.
voidsetTitleFont(Font titleFont)
Sets the title-font of the titled border.
voidsetTitleJustification(int titleJustification)
Sets the title-justification of the titled border.
voidsetTitlePosition(int titlePosition)
Sets the title-position of the titled border.