import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.border.Border; public class ABevelBorderLoweredBevelBorder { public static void main(String args[]) { JFrame frame = new JFrame("Bevel Borders"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Border loweredBorder = BorderFactory.createLoweredBevelBorder(); JButton button = new JButton("Raised"); button.setBorder(loweredBorder); frame.add(button); frame.setSize(300, 100); frame.setVisible(true); } }