public static boolean isScreenAvailableToShow ( final int screen ) { final GraphicsDevice [ ] graphicsDevices = getAvailableScreens ( ) ; boolean screenAvailableToShow = false ; if ( ( screen > - 1 && screen < graphicsDevices . length ) || ( graphicsDevices . length > 0 ) ) { screenAvailableToShow = true ; } return screenAvailableToShow ; }
Checks if the given screen number is available to show .