Class OSXUtil


  • public class OSXUtil
    extends java.lang.Object
    A class with OSX-specific functions to improve integration.
    • Constructor Summary

      Constructors 
      Constructor Description
      OSXUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void requestForeground()
      Requests the foreground in a macOS friendly way.
      static void requestUserAttention()
      Request user attention on macOS
      static void tryEnableFullscreen​(javax.swing.JFrame gui)
      Enables the osx native fullscreen if running on a mac.
      • Methods inherited from class java.lang.Object

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

      • OSXUtil

        public OSXUtil()
    • Method Detail

      • tryEnableFullscreen

        public static void tryEnableFullscreen​(javax.swing.JFrame gui)
        Enables the osx native fullscreen if running on a mac.
        Parameters:
        gui - The gui to enable the fullscreen on.
      • requestUserAttention

        public static void requestUserAttention()
        Request user attention on macOS
      • requestForeground

        public static void requestForeground()
        Requests the foreground in a macOS friendly way.