Waiting for invokeLater() to be called
Is there a more elegant way to do what I'm doing below? That is, is there a more elegant way than polling and sleeping, polling and sleeping, and so on to know when a Runnable.run() method has been called via invokeLater()? private int myMethod() { final WaitForEventQueue waitForQueue = new WaitForEventQueue(); EventQueue.invok...