Skip to content

Commit

Permalink
#155 - force redraw of swing jtable
Browse files Browse the repository at this point in the history
  • Loading branch information
hohonuuli committed Jul 11, 2024
1 parent 644a09a commit f156916
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ private void init() {
SwingUtilities.invokeLater(() -> {
Collection<Annotation> annotations = e.get();
annotations.forEach(tableModel::updateAnnotation);
if (annotations.size() > 20) {
table.revalidate();
table.repaint();
}
toolBox.getEventBus()
.send(new AnnotationsSelectedEvent(JXAnnotationTableController.this, annotations));
});
Expand Down

0 comments on commit f156916

Please sign in to comment.