Event dispatching thread: Difference between revisions

Content deleted Content added
m Swing and thread safety: {{where}} -> {{fact}}
Line 7:
| title=The Event Dispatch Thread
| publisher=[[Sun Microsystems]]
| accessdate=2010-03-19}}</ref><ref>http://weblogs.java.net/blog/alexfromsun/archive/2005/11/debugging_swing_1.html</ref> To avoid these problems, Swing standards statesstate{{fact|date=July 2010}} that all [[Graphical user interface|user interface]] components should be created '''and''' accessed '''only''' from the AWT event dispatch thread. A popular third-party [[Pluggable look and feel|Look and Feel]] named [http://substance.dev.java.net/ Substance] goes as far as to refuse to instantiate any Swing component off of the Event Dispatch Thread,<ref>http://www.pushing-pixels.org/?p=368</ref> to prevent coders from making such a mistake.
 
== Executing code in the EDT ==