Class MacUtil


  • public final class MacUtil
    extends java.lang.Object
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PANEL_BACKGROUND_COLOR

        public static final java.awt.Color PANEL_BACKGROUND_COLOR
    • 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