public static int getScreenHeight(final GraphicsDevice graphicsDevice)
	{
		final GraphicsConfiguration[] graphicsConfigurations = graphicsDevice.getConfigurations();
		final GraphicsConfiguration graphicsConfiguration = ArrayExtensions
			.getFirst(graphicsConfigurations);
		if (graphicsConfiguration != null)
		{
			final Rectangle bounds = graphicsConfiguration.getBounds();
			final double height = bounds.getHeight();
			return (int)height;
		}
		return getScreenHeight();
	}
public static int getScreenHeight ( final GraphicsDevice graphicsDevice ) { final GraphicsConfiguration [ ] graphicsConfigurations = graphicsDevice . getConfigurations ( ) ; final GraphicsConfiguration graphicsConfiguration = ArrayExtensions . getFirst ( graphicsConfigurations ) ; if ( graphicsConfiguration != null ) { final Rectangle bounds = graphicsConfiguration . getBounds ( ) ; final double height = bounds . getHeight ( ) ; return ( int ) height ; } return getScreenHeight ( ) ; }
Gets the screen height from the given {@link GraphicsDevice} object.

@param graphicsDevice
the {@link GraphicsDevice} object.
@return the screen height from the given {@link GraphicsDevice} object.