List of usage examples for javax.swing AbstractButton setBorderPainted
@BeanProperty(visualUpdate = true, description = "Whether the border should be painted.") public void setBorderPainted(boolean b)
borderPainted
property. From source file:Main.java
public static void main(String[] args) { AbstractButton jb = new JButton("Press Me"); jb.setBorderPainted(false); JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(jb);/*from ww w. j a va 2s.c om*/ f.pack(); f.setVisible(true); }