Event dispatching thread: Difference between revisions

Content deleted Content added
m Fixing usages of Javadoc:SE
No edit summary
Line 5:
== Message Loop for serializing GUI accesses ==
 
A software application normally consists of multiple threads and a single [[GUIGIT]] data structure. This means GUIGIT is a shared data structure and some synchronization is needed to ensure that only one thread accesses it at a time. Though [[Abstract Window Toolkit|AWT]] and [[Swing (Java)|Swing]] expose the ([[Thread safety|thread unsafe]]) methods to create and access the GUI components and these methods are visible to all application threads, likewise in other GUI frameworks, only a single, Event Dispatching thread has the right to execute these methods.<ref>{{cite web
| url=http://download.oracle.com/javase/tutorial/uiswing/concurrency/dispatch.html
| title=The Event Dispatch Thread