data[i + direction] = temp;
}
updateFeatureRenderer(data);
- table.repaint();
+ repaintTable();
selectedRow = newRow;
}
}
.getData();
ensureOrder(data);
updateFeatureRenderer(data, false);
- table.repaint();
+ repaintTable();
}
} catch (Exception ex)
{
data[i][SHOW_COLUMN] = !(Boolean) data[i][SHOW_COLUMN];
}
updateFeatureRenderer(data, true);
- table.repaint();
+ repaintTable();
}
public void orderByAvWidth()
}
updateFeatureRenderer(data, false);
- table.repaint();
+ repaintTable();
}
- public void close()
+
+ private void repaintTable() {
+ // BH 2018
+ // Here is a needed intervention
+ // because generally we don't "repaint"
+ // the table. We re-create the HTML divs
+ // that is associated with it. A better
+ // way to do this would be to fire a property change.
+
+ @SuppressWarnings("unused")
+ TableUI ui = table.getUI();
+ /**
+ * @j2sNative ui.repaintTable$();
+ */
+ {
+ table.repaint();
+ }
+ }
+
+public void close()
{
try
{