Example usage for javax.swing AbstractButton isContentAreaFilled

List of usage examples for javax.swing AbstractButton isContentAreaFilled

Introduction

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

Prototype

public boolean isContentAreaFilled() 

Source Link

Document

Gets the contentAreaFilled property.

Usage

From source file:Main.java

public static void main(String[] args) {
    AbstractButton jb = new JToggleButton("Press Me");
    jb.setSelected(true);/*w w w .j a  va2s .c o m*/
    System.out.println(jb.isContentAreaFilled());

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