- // Let table know that it has to refresh data (and might as well refresh column headings too)
- fireTableStructureChanged();
+ // Let table know that it has to refresh data, and maybe the whole table too
+ if (distUnitsChanged) {
+ fireTableStructureChanged();
+ }
+ else {
+ fireTableDataChanged();
+ }