Class MainScreen


  • public class MainScreen
    extends Object
    Static methods for positioning windows on the main screen.
    Author:
    Gary McGath
    • Method Detail

      • centerWindow

        public static void centerWindow​(Window win)
        Center the window on the main screen.
      • centerTopWindow

        public static void centerTopWindow​(Window win)
        Center the window at the top of the main screen.
      • mainBounds

        public static Rectangle mainBounds()
        Returns the bounds of the main monitor device.