Here you can find the source of myBorder(String title)
public static Border myBorder(String title)
//package com.java2s; //License from project: Open Source License import java.awt.Color; import java.awt.Font; import javax.swing.BorderFactory; import javax.swing.border.Border; import javax.swing.border.TitledBorder; public class Main { public static final Font fnt_label1 = new Font("Serif", Font.PLAIN, 16); public static Border myBorder(String title) { return BorderFactory.createTitledBorder( BorderFactory.createEtchedBorder(), title, TitledBorder.LEFT, TitledBorder.LEFT, fnt_label1, new Color(25, 25, 250)); }/*ww w. jav a 2s. com*/ }