Event dispatching thread: Difference between revisions

Content deleted Content added
mNo edit summary
Line 1:
The '''event dispatching thread''' (EDT) is a background [[Thread (computer science)|thread]] used in [[Java programming language|Java]] to process events from the [[Abstract Windowing Toolkit]] (AWT) [[graphical user interface]] [[event queue]]. These events are primarily update events that cause user interface [[Software componentry|components]] to redraw themselves, or input events from [[input device]]s such as the mouse or keyboard. The AWT uses a single-threaded painting [[Model (abstract)|model]] in which all screen updates must be performed from a single thread. The event dispatching thread is the only valid thread to update the visual state of visible user interface components. Updating visualvisible components from other threads is the source of many common [[Programming bug|bugs]] in Java [[Computer program|programs]] that use [[Swing (Java)|Swing]].
 
== Executing code in the EDT ==