Creates a new titled border with the specified title, the default border type (determined by the current look and feel), the default text position (determined by the current look and feel), the default justification (leading), and the default font and text color (determined by the current look and feel).
title | a String containing the text of the title |
TitledBorder
object
Diagram: BorderFactory