invokeLater - SwingUtil vs AppMan
Answered
I note advice saying use ApplicationManager.getApplication().invokeLater() over SwingUtilities.invokeLater()
Has anyone seen cases where the SU one 'works' but the AppMan one doesn't? I have such a case below.
Is one intended to be a direct replacement?
...invokeLater(() -> {
wizardContext().getWizard().updateButtons(false, false, false);
wizardContext().requestWizardButtonsUpdate();
});
Those two lines work from a constructor when SU.invokeLater is used but not the other.
Please sign in to leave a comment.
com.intellij.openapi.application.Application#invokeLater(java.lang.Runnable) uses ModalityState, please see its javadoc for more detailed explanations.