Datasource#excludeItem causes IllegalArgumentException in DesktopAbstractTable#repaint #PL-4853

This commit is contained in:
Yuriy Artamonov 2015-02-10 12:52:28 +00:00
parent c5b701d94c
commit b4526ddcdf

View File

@ -769,6 +769,9 @@ public abstract class DesktopAbstractTable<C extends JXTable>
if (focusManager != null && scrollRowIndex >= 0) {
focusManager.scrollToSelectedRow(scrollRowIndex);
}
// reassign identifiers for auto created columns
setColumnIdentifiers();
}
@SuppressWarnings("unchecked")
@ -1873,12 +1876,14 @@ public abstract class DesktopAbstractTable<C extends JXTable>
TableColumn tableColumn = getColumn(column);
if (tableColumn != null) {
DesktopTableCellEditor cellEditor = (DesktopTableCellEditor) tableColumn.getCellEditor();
if (cellEditor != null) {
boolean inline = cellEditor.isInline();
if (!inline) {
return false;
}
}
}
}
return true;
}