working with invokeAndWait in Swing java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 11162
Total Votes: 141 votes
Submitted on: 2011-09-24 12:10:39
Submitted By: Javin Paul
Description:problem with Swing is that its not thread safe, you can not update Swing GUI component from any thread , which makes life of swing GUI developer quite difficult while programming concurrent applications which involves multiple threads. SwingUtilities provides solution of this problem by introducing two utility method called invokeAndWait and invokeLater, which allows you to update GUI from any thread in thread-safe manner by requesting Event dispatcher thread to do the update. More detail...