Class WindowUtilities


  • public class WindowUtilities
    extends Object
    Collection of Window Utilities
    Author:
    KIYUT
    • Method Detail

      • centerWindow

        public static void centerWindow​(Window window)
        Center Window on Screen
        Parameters:
        window - Window
      • centerLocation

        public static Point centerLocation​(Dimension size1,
                                           Dimension size2)
        Return Point indicated center Location given the param
        Parameters:
        size1 - The container size
        size2 - The size to be centered against size1
        Returns:
        Point