Example usage for javax.swing AbstractButton getDisabledSelectedIcon

List of usage examples for javax.swing AbstractButton getDisabledSelectedIcon

Introduction

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

Prototype

public Icon getDisabledSelectedIcon() 

Source Link

Document

Returns the icon used by the button when it's disabled and selected.

Usage

From source file:Main.java

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

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