void (final Object element, final String selectedText) { final List<Item> items = getComponent().getItems(); for (int i = 0, itemsSize = items.size(); i < itemsSize; i++) { final Object o = items.get(i); if (o == element) { final int viewIndex = myComponent.convertRowIndexToView(i); getComponent().getSelectionModel().setSelectionInterval(viewIndex, viewIndex); TableUtil.scrollSelectionToVisible(getComponent()); break; } } }