for (int j = 0; j < row.size(); j++) {
for (int j = 0; j < count; j++) {
Point layout (int width, boolean resize) {	int y = ROW_SPACING, maxWidth = 0;	for (int i = 0; i < rows.size(); i++) {		Vector row = (Vector) rows.elementAt(i);		if (row.size() > 0) {			int x = 0, rowHeight = getRowHeight(i);			for (int j = 0; j < row.size(); j++) {				CoolItem child = (CoolItem) row.elementAt(j);				int childWidth = child.getSize().x;				if (resize) child.setBounds(x, y, childWidth, rowHeight);				x += childWidth;			}					maxWidth = Math.max(maxWidth, x);			if (resize) adjustItemWidths(row, width);			y += ROW_SPACING + rowHeight;		}	}	return new Point(maxWidth, y);}