Event Dispatching Thread

The event dispatching thread (EDT) is a background thread used in Java to process events from the Abstract Window Toolkit (AWT) graphical user interface event queue. These events are primarily update events that cause user interface components to redraw themselves, or input events from input devices such as the mouse or keyboard. The AWT uses a single-threaded painting 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 visible components from other threads is the source of many common bugs in Java programs that use Swing.

Read more about Event Dispatching Thread:  Swing and Thread Safety, Executing Code in The EDT

Famous quotes containing the words event and/or thread:

    The frequency of personal questions grows in direct proportion to your increasing girth. . . . No one would ask a man such a personally invasive question as “Is your wife having natural childbirth or is she planning to be knocked out?” But someone might ask that of you. No matter how much you wish for privacy, your pregnancy is a public event to which everyone feels invited.
    Jean Marzollo (20th century)

    Tom Hyde, the tinker, standing on the gallows, was asked if he had anything to say. “Tell the tailors,” said he, “to remember to make a knot in their thread before they take the first stitch.” His companion’s prayer is forgotten.
    Henry David Thoreau (1817–1862)