Example usage for javax.swing AbstractButton isFocusPainted

List of usage examples for javax.swing AbstractButton isFocusPainted

Introduction

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

Prototype

public boolean isFocusPainted() 

Source Link

Document

Gets the paintFocus property.

Usage

From source file:Main.java

public static void main(String[] args) {
    AbstractButton jb = new JToggleButton("Press Me");
    jb.setSelected(true);//www  . j  a  va 2  s .co  m
    System.out.println(jb.isFocusPainted());

    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(jb);
    f.pack();
    f.setVisible(true);
}