Search code examples
javaswingcursorevent-dispatch-thread

How to detect when main thread freeze GUI in java?


I want to detect when some time consumption operations in main thread cause gui freeze. My target is to set and unset wait cursor automatically.

thanks


Solution

  • I think this could be helpful: http://www.javaspecialists.eu/archive/Issue075.html and http://www.javaworld.com/javaworld/javatips/jw-javatip87.html.