Event dispatching thread: Difference between revisions

Content deleted Content added
No edit summary
 
m +cleanup
Line 1:
{{cleanup}}
== Event Dispatch Thread ==
 
 
AWT toolkit in Java uses a single-threaded painting model, in which all screen updates must be performed from a single thread (even in multithreaded applications). Event Dispatch Thread is a background thread used to process events from the AWT event queue, and is the only valid thread to update visual components on the screen. Updating visual components from other threads is the source of most common errors in Swing.