GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height);
  public VolatileImage createVolatileImage(int width, int height)  {		if (GraphicsEnvironment.isHeadless())			return null;		GraphicsConfiguration config = getGraphicsConfiguration();    return config == null ? null      : config.createCompatibleVolatileImage(width, height);	}