public void updateRect(Point mouse) {
		if(dragStart.x < mouse.x) {
			x = dragStart.x;
			width = mouse.x - dragStart.x;
		} else {
			x = mouse.x;
			width = dragStart.x - mouse.x;
		}
		
		if(dragStart.y < mouse.y) {
			y = dragStart.y;
			height = mouse.y - dragStart.y;
		} else {
			y = mouse.y;
			height = dragStart.y - mouse.y;
		}
	}