int rowWidth = bounds.x + bounds.width;
int borders = getBorderWidth() * 2; int rowWidth = bounds.x + bounds.width + borders;
void adjustItemWidths (Vector row, int width) {	CoolItem last = (CoolItem) row.lastElement();	Rectangle bounds = last.getBounds();	int rowWidth = bounds.x + bounds.width;	if (width == rowWidth) return;	if (width > rowWidth || width > bounds.x + CoolItem.MINIMUM_WIDTH) {		last.setBounds(bounds.x, bounds.y, width - bounds.x, bounds.height);		return;	}	/* Shifting the last item ensures that all hidden items	   to its left are made visible as well.*/	last.setBounds(bounds.x, bounds.y, CoolItem.MINIMUM_WIDTH, bounds.height);	moveLeft(last, bounds.x - width + CoolItem.MINIMUM_WIDTH); }