faster renaming identifiers (invokeandwait => invokelater)

This commit is contained in:
Honfika
2013-11-14 00:00:12 +01:00
parent 01a4857c95
commit f5effd21f2
2 changed files with 2 additions and 7 deletions

View File

@@ -287,11 +287,10 @@ public class Main {
if (mainFrame != null) {
mainFrame.setVisible(true);
}
Main.stopWork();
}
});
Main.stopWork();
return true;
}
}

View File

@@ -218,11 +218,7 @@ public class View {
if (SwingUtilities.isEventDispatchThread()) {
r.run();
} else {
try {
SwingUtilities.invokeAndWait(r);
} catch (InterruptedException | InvocationTargetException ex) {
Logger.getLogger(View.class.getName()).log(Level.SEVERE, null, ex);
}
SwingUtilities.invokeLater(r);
}
}