Package com.im.commons.ui
Class MacUtil
- java.lang.Object
-
- com.im.commons.ui.MacUtil
-
public final class MacUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.Color
PANEL_BACKGROUND_COLOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setOpaque(javax.swing.JComponent... components)
On Mac sets the background of all passed components to be opaque with color that is used in NetBeans as default background color on Mac.static void
setTransparent(javax.swing.JComponent... components)
On Mac sets the background color to be transparent.
-
-
-
Method Detail
-
setOpaque
public static void setOpaque(javax.swing.JComponent... components)
On Mac sets the background of all passed components to be opaque with color that is used in NetBeans as default background color on Mac.- Parameters:
components
- all components where to set the background
-
setTransparent
public static void setTransparent(javax.swing.JComponent... components)
On Mac sets the background color to be transparent. With this pattern only bottom panel is opaque and all higher layers are transparent, making sure the Mac UI is consistent.- Parameters:
components
- all components where to set the background
-
-