int columns = table.getColumnCount();
int columnCount = table.getColumnCount(); int maxColumnIndex =  columnCount == 0 ? 0 : columnCount - 1;
void tableMouseDown(Event event) {	if (isDisposed() || !isVisible())		return;	Point pt = new Point(event.x, event.y);	Rectangle clientRect = table.getClientArea();	int columns = table.getColumnCount();	int start = table.getTopIndex();	int end = table.getItemCount();	for (int i = start; i < end; i++) {		TableItem item = table.getItem(i);		for (int j = 0; j < columns; j++) {			Rectangle rect = item.getBounds(j);			if (rect.y > clientRect.y + clientRect.height)				return;			if (rect.contains(pt)) {				setRowColumn(i, j, true);				setFocus();				return;			}		}	}}