Swing中的线程(摘录)

As we discussed earlier, Swing relies on the older AWT GUI toolkit for top-level
window support and event dispatching. Whenever you run a Swing application,
three threads are automatically created. The first one is the main thread, which
runs your application’s main method. A second thread, called the toolkit thread,
is in charge of capturing the system events, like keyboard key presses or mouse
movements. Although this thread is vital, it is only part of AWT implementation
and never runs application code. Capture events are sent over to a third thread,
the EDT.

你可能感兴趣的:(thread,swing)