Here you can find the source of createThickInsetBorder()
public static Border createThickInsetBorder()
//package com.java2s; /******************************************************************************* * Copyright (c) 2014 Open Door Logistics (www.opendoorlogistics.com) * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v3 * which accompanies this distribution, and is available at http://www.gnu.org/licenses/lgpl.txt ******************************************************************************/ import java.awt.Color; import javax.swing.*; import javax.swing.border.Border; public class Main { public static Border createThickInsetBorder() { return BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(Color.DARK_GRAY, 2), BorderFactory.createEmptyBorder(5, 5, 5, 5)); }/* ww w .ja v a 2 s . c o m*/ }