only show details for selected card if the table has focus

This commit is contained in:
myk
2013-02-24 04:31:23 +00:00
parent d9da16954f
commit 372d293d7c

View File

@@ -217,8 +217,10 @@ public final class EditorTableModel<T extends InventoryItem> extends AbstractTab
table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(final ListSelectionEvent arg0) {
if (table.isFocusOwner()) {
EditorTableModel.this.showSelectedCard(table);
}
}
});
table.addFocusListener(new FocusAdapter() {