Not sure if there still is a problem or if what I posted above helps. But here is a link to one of the more thorough articles related to threading and Swing: Threads and Swing
Type: Posts; User: copeg
Not sure if there still is a problem or if what I posted above helps. But here is a link to one of the more thorough articles related to threading and Swing: Threads and Swing
Swing already has its own EDT. Dispatching another Runnable to be executed on this thread that is an infinite loop (your second example) will lock of the EDT and hence anything that needs to be run...