Java tutorial
import javax.swing.BorderFactory; import javax.swing.JLabel; import javax.swing.border.BevelBorder; public class Main { public static void main(String[] argv) { BevelBorder raisedBevelBorder = (BevelBorder) BorderFactory.createRaisedBevelBorder(); JLabel component = new JLabel("label"); component.setBorder(raisedBevelBorder); } }