List of usage examples for javax.swing AbstractButton isContentAreaFilled
public boolean isContentAreaFilled()
contentAreaFilled
property. From source file:Main.java
public static void main(String[] args) { AbstractButton jb = new JToggleButton("Press Me"); jb.setSelected(true);/*w w w .j a va2s .c o m*/ System.out.println(jb.isContentAreaFilled()); JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(jb); f.pack(); f.setVisible(true); }