Here you can find the source of createLineBorder()
public static Border createLineBorder()
//package com.java2s; //License from project: Open Source License import java.awt.Color; import javax.swing.BorderFactory; import javax.swing.border.Border; public class Main { private static Border lineBorder = BorderFactory.createLineBorder(Color.BLUE, 3); public static Border createLineBorder() { return lineBorder; }/*w ww . jav a 2s . co m*/ }