Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
working with invokeAndWait in Swing java
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 quitehttp://javarevisited.blogspot.com/2011/09/invokeandwait-invokelater-swing-example.html
Total Hits: 3239
Total Votes: 46 votes
Average Rating: 2.87 out of 5
Category: JAVA/Swing
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.Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 15.22% |
7 |
![]() ![]() |
![]() ![]() 15.22% |
7 |
![]() ![]() ![]() |
![]() ![]() 13.04% |
6 |
![]() ![]() ![]() ![]() |
![]() ![]() 15.22% |
7 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 28.26% |
13 |




15.22%

15.22%

13.04%

15.22%

28.26%