List of usage examples for javax.swing AbstractButton setContentAreaFilled
@BeanProperty(visualUpdate = true, description = "Whether the button should paint the content area or leave it transparent.") public void setContentAreaFilled(boolean b)
contentAreaFilled
property. 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))); }