for (int column = cMin; column <= cMax; column++)
for (int column = cMin; column != -1 && column <= cMax; column++)
	public void paint(Graphics g, JComponent c)	{		TableColumnModel cm = header.getColumnModel();		if (cm.getColumnCount() > 0)		{			Rectangle clip = g.getClipBounds();			Point left = clip.getLocation();			Point right = new Point(clip.x + clip.width - 1, clip.y);			int cMin = header.columnAtPoint(left);			int cMax = header.columnAtPoint(right);			if (cMax == -1)			{				// If the table does not have enough columns to fill 				// the view we'll get -1.				// Replace this with the index of the last column.				cMax = cm.getColumnCount() - 1;			}			int columnWidth;			Rectangle cellRect = header.getHeaderRect(cMin);						Set done = new HashSet();			for (int column = cMin; column <= cMax; column++)			{				TableColumn aColumn = cm.getColumn(column);				columnWidth = aColumn.getWidth();				cellRect.width = columnWidth;				paintCell(done, g, cellRect, column);				cellRect.x += columnWidth;			}			// Remove all components in the rendererPane.						rendererPane.removeAll();		}	}