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