[with] the current implementation, AWT terminates all its helper threads allowing the application to exit cleanly when the following three conditions are true:
There are no displayable AWT or Swing components.
There are no native events in the native event queue.
# 1 楼答案
Swing EDT已经是你所考虑的“守护进程”——在处理/隐藏所有Swing元素之后,线程将悄然退出。你可以阅读更多关于AWT Threads的内容,其中指出
秋千也是如此