SecondaryLoop.enter() not blocking until exit() is called on the EDT
问题 Summary For some reason when I call SecondaryLoop.enter() on the AWT Event Dispatch Thread (EDT), it does not wait for SecondaryLoop.exit() to be called before unblocking. Background Since I think SecondaryLoop is not a very well-known class, I'll give a brief overview: In general, it is a bad idea to have any long-executing or blocking code running on the EDT because then your app will not be responsive to any events until that code terminates. The EventQueue.createSecondaryLoop() allows you