TableCell (Point point) { int rowIndex = myComponent.rowAtPoint(point); if (rowIndex == -1) { return null; } int columnIndex = myComponent.columnAtPoint(point); // column index in visible coordinates if (columnIndex == -1) { return null; } return new TableCell(rowIndex, columnIndex); }