Here you can find the source of getRaisedBorder(int innerPadding)
public static Border getRaisedBorder(int innerPadding)
//package com.java2s; //License from project: Apache License import javax.swing.BorderFactory; import javax.swing.border.Border; import javax.swing.border.EtchedBorder; public class Main { public static Border getRaisedBorder(int innerPadding) { Border b1 = BorderFactory.createEmptyBorder(innerPadding, innerPadding, innerPadding, innerPadding); Border b2 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED); return BorderFactory.createCompoundBorder(b2, b1); }//w w w .j a v a2s. c om }