Rectangle d = getBounds(); x = (int) (d.width-manager.getImageWidth())/2; y = (int) (d.height-manager.getImageHeight())/2;
Rectangle r = manager.getScrollPane().getViewportBorderBounds(); x = (int) (r.width-w)/2; y = (int) (r.height-h)/2;
	private void setLocation()	{		Rectangle d = getBounds();		x = (int) (d.width-manager.getImageWidth())/2;		y = (int) (d.height-manager.getImageHeight())/2;		if (x < 0) x = 0;		if (y < 0) y = 0;	}