x += c.getWidth().getValue();
x += component.getWidth();
	protected Point getCenter(Component component, int side) {		if (side < 0 || side > 3)			throw new Error(side + " is an invalid side.");				Constraints c = layout.getConstraints(component);		int x = c.getX().getValue(), y = c.getY().getValue();				if (side < 2) {			x += c.getWidth().getValue()/2;			if (side == 1)				y += c.getHeight().getValue();		} else {			y += c.getHeight().getValue()/2;			if (side == 2)				x += c.getWidth().getValue();		}		return new Point(x, y);	}