public static void centerOnScreenAndSetVisible ( Window window ) { window . pack ( ) ; centerOnScreen ( window ) ; window . setVisible ( true ) ; }
Pack the window center it on the screen and set the window visible .