Hello Stephen, Am 04.06.2009 um 14:50 schrieb Stephen C. Gilardi:
I'm concerned about the first clause in the cond. Both invokeLater and invokeAndWait defer execution until all pending AWT Events have been processed. This suggests to me that they are implemented as events that go on the end of the queue. It seems to me there might be subtle bugs associated with executing the thunk immediately if we're already in the dispatch thread, but after pending events are processed if we're not.Any thoughts?
These are certainly valid thoughts. I'm not a Swing guru coming from a non-Java background. Maybe your last version is the best, though I'm not sure about the queueing stuff... Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature