* @param object the object that is selected
*/
public void selectObject( @NotNull T object ) {
try {
getSelectionModel().setValueIsAdjusting( true );
GlazedTableModel tableModel = getTableModel();
int rowCount = tableModel.getRowCount();
for ( int i = 0; i < rowCount; i++ ) {
Object rowObject = tableModel.getElementAt( i );
//noinspection ObjectEquality
if ( rowObject == object ) {
getSelectionModel().setSelectionInterval( i, i );
TableUtils.scrollToRow( getTable(), i );
return;