[concurrency-interest] Swing translates InterruptedException to Error

Gregg Wonderly gergg at cox.net
Sat Dec 15 10:40:52 EST 2007


Darius Polonis wrote:
> Allright, in that case I'll just wrap my code and use  
> SwingUtilities.invokeLater(). But I am not sure the Swing folks have  
> to come to your conclusion, too, as the javadoc still states  
> AbstractDocument.insertString() would be thread safe...

They used to say that an unrealized component could be manipulated outside of 
the event thread.  This is now, no longer possible.  It is important to write 
any code that touches a swing component to use the event dispatch thread.

Gregg Wonderly



More information about the Concurrency-interest mailing list