code: public static int getGraphicsDeviceIndexIsShowingOn(final Component component)
  	{
  		final GraphicsDevice graphicsDevice = getGraphicsDeviceIsShowingOn(component);
  		final GraphicsDevice[] graphicsDevices = getAvailableScreens();
  		for (int i = 0; i < graphicsDevices.length; i++)
  		{
  			if (graphicsDevices[i].equals(graphicsDevice))
  			{
  				return i;
  			}
  		}
  		return 0;
  	}
docs: Gets the array index(in the available {@link GraphicsDevice} array) of the given component is
  showing on.
  
  @param component
  the component
  @return the array index(in the available {@link GraphicsDevice} array) of the given component
  is showing on.