Example usage for javax.swing AbstractButton getRolloverSelectedIcon

List of usage examples for javax.swing AbstractButton getRolloverSelectedIcon

Introduction

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

Prototype

public Icon getRolloverSelectedIcon() 

Source Link

Document

Returns the rollover selection 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.getRolloverSelectedIcon());

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