Example usage for javax.swing AbstractButton isRolloverEnabled

List of usage examples for javax.swing AbstractButton isRolloverEnabled

Introduction

In this page you can find the example usage for javax.swing AbstractButton isRolloverEnabled.

Prototype

public boolean isRolloverEnabled() 

Source Link

Document

Gets the rolloverEnabled property.

Usage

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);
}