Here you can find the source of createWidgetBorder()
public static javax.swing.border.Border createWidgetBorder()
//package com.java2s; //License from project: Open Source License public class Main { private static final javax.swing.border.Border WIDGET_BORDER = javax.swing.BorderFactory.createCompoundBorder( javax.swing.BorderFactory.createMatteBorder(1, 1, 0, 0, java.awt.Color.GRAY), javax.swing.BorderFactory.createRaisedBevelBorder()); public static javax.swing.border.Border createWidgetBorder() { return WIDGET_BORDER; }//from ww w . j ava2s . co m }