Example usage for javax.swing AbstractButton getRolloverIcon

List of usage examples for javax.swing AbstractButton getRolloverIcon

Introduction

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

Prototype

public Icon getRolloverIcon() 

Source Link

Document

Returns the rollover icon for the button.

Usage

From source file:Main.java

public static void main(String[] args) {
    AbstractButton jb = new JButton("Press Me");
    System.out.println(jb.getRolloverIcon());

    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(jb);//from   www  . j a v a  2 s. co m
    f.pack();
    f.setVisible(true);
}