public void mouseDragged(MouseEvent e) 
	{
		if(e.getX()>x && e.getX()<x+width)
		{
			if(e.getY()>y && e.getY()<y+height)
			{
				selected=true;
			}
		}
		if(selected)
		{
			mouseX=e.getX();
			mouseY=e.getY();
		}
	}