How to handle Thread-safety in Swing
  How to handle Thread-safety in Swing
2D Graphics
3D Graphics
Web Design & Development
Business Applications
Business Development
Databases
Desktop Programming
Operating Systems
Video Editing
Miscellaneous
Newsletter
User Login
  • Username
  • Password
Stats
  • Tutorials: 39,024
  • Categories: 572

Java Tutorials : How to handle Thread-safety in Swing

Main 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.
How to handle Thread-safety in Swing   tutorial
    View Tutorial

Detailed Information

     Tutorial: How to handle Thread-safety in Swing
     Date Listed: 2011-10-11
     Submitted By: javabuddy
     Total Hits: 925
     Rating Tutorial Rating 3.11Tutorial Rating 3.11Tutorial Rating 3.11Tutorial Rating 3.11Tutorial Rating 3.11 (27 votes)

    Discuss Tutorial
    Comment On Tutorial
    View Tutorial
    Report Broken Link

 





© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap