diff --git a/src/main/java/net/sf/jabref/gui/FindUnlinkedFilesDialog.java b/src/main/java/net/sf/jabref/gui/FindUnlinkedFilesDialog.java index 5677ab974b4..7519388564a 100644 --- a/src/main/java/net/sf/jabref/gui/FindUnlinkedFilesDialog.java +++ b/src/main/java/net/sf/jabref/gui/FindUnlinkedFilesDialog.java @@ -472,10 +472,10 @@ public void stateChanged(ChangeEvent e) { } else { message = Localization.lang("%0 files found", Integer.toString(counter)); } - SwingUtilities.invokeLater(() -> progressBarSearching.setString(message)); + progressBarSearching.setString(message); } }); - SwingUtilities.invokeLater(() -> searchFinishedHandler(rootNode)); + searchFinishedHandler(rootNode); }); } @@ -532,14 +532,12 @@ entryType, checkBoxWhyIsThereNoGetSelectedStupidSwing, new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { counter++; - SwingUtilities.invokeLater(() -> { - progressBarImporting.setValue(counter); - progressBarImporting.setString(Localization.lang("%0 of %1", Integer.toString(counter), - Integer.toString(progressBarImporting.getMaximum()))); - }); + progressBarImporting.setValue(counter); + progressBarImporting.setString(Localization.lang("%0 of %1", Integer.toString(counter), + Integer.toString(progressBarImporting.getMaximum()))); } }, errors); - SwingUtilities.invokeLater(() -> importFinishedHandler(errors)); + importFinishedHandler(errors); }); }