Example usage for javax.swing AbstractButton setContentAreaFilled

List of usage examples for javax.swing AbstractButton setContentAreaFilled

Introduction

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

Prototype

@BeanProperty(visualUpdate = true, description = "Whether the button should paint the content area or leave it transparent.")
public void setContentAreaFilled(boolean b) 

Source Link

Document

Sets the contentAreaFilled property.

Usage

From source file:org.openmicroscopy.shoola.util.ui.UIUtilities.java

/**
 * Sets the opacity of the specified button depending on the 
 * system look and Feel./*from   www.ja  v a 2s.com*/
 * 
 * @param b The button to handle.
 */
public static void opacityCheck(AbstractButton b) {
    if (b == null)
        return;
    //String laf = UIManager.getSystemLookAndFeelClassName();
    String osName = System.getProperty("os.name");
    b.setContentAreaFilled(!(osName.startsWith("Mac OS")));
    //b.setContentAreaFilled(!(MAC_L_AND_F.equals(laf)));
}