更新时间:2021-09-17 22:17:14
如果你的意思是关闭所有窗口后JVM没有正常退出,那么看以下几点:
If you mean that the JVM doesn't exit properly after closing all windows, then look at the following points:
Window.getWindows()
Thread
(守护进程除外)System.exit(0)
(这是 JWS 的已知错误)Window.getWindows()
Thread
(except daemons) after disposing of all windowsSystem.exit(0)
(that's a known bug of JWS)希望这有助于回答您的问题.
Hope this helps answer your question.
此外,最近还有这个SO问题关于垃圾收集摆动窗户.
Besides, there was also this SO question recently about garbage collection of Swing windows.