List of usage examples for javax.swing AbstractButton isBorderPainted
public boolean isBorderPainted()
borderPainted
property. From source file:Main.java
public static void main(String[] args) { AbstractButton jb = new JToggleButton("Press Me"); jb.setSelected(true);/*from w ww .java2 s . co m*/ System.out.println(jb.isBorderPainted()); JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(jb); f.pack(); f.setVisible(true); }