Java tutorial
import javax.swing.BorderFactory; import javax.swing.border.TitledBorder; public class Main { public static void main(String[] argv) { TitledBorder titledBorder = BorderFactory.createTitledBorder("Title"); } }