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 quite
http://javarevisited.blogspot.com/2011/09/invokeandwait-invokelater-swing-example.html
  • Total Hits: 13292

  • Average Rating :
    Tutorial RatingTutorial RatingTutorial RatingTutorial RatingTutorial RatingTutorial Rating

  •  

  • Total Votes: 141 votes

  • Average Rating: 2.79 out of  5

  • Category: JAVA/Swing

  • Set as Favorite

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
 One star  Vote LeftVote MiddleVote Right 39.01%  55
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.64%  15
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.35%  16
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 10.64%  15
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.37%  40

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements