Cannot Call invokeAndWait From The Event Dispatcher Thread

In Swing, it is a pretty common mistake that running Threads can result in exceptions based on the event dispatcher. In my case, it happened when I called invokeAndWait() method in the SwingUtilities class. There was supposed to be another set of code to run that gets called with the invokeLater() but... 

Source:  Tech Tips Tricks

Disclaimer: PinoyBlogoSphere.com(PBS) claims no credit for any content(posts, articles, texts, images, videos) featured on this site unless otherwise noted. All contents are copyright to their owners/sources. PBS is in no way responsible for or has control of the content of any external web site links. Information on this site may contain errors or inaccuracies; we do not make warranty as to the correctness or reliability of the site’s content. If you own rights to any of the content, and do not wish them to appear on this site, please contact us via e-mail and they will be removed.
Your Ad Here

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

  . .