From which thread should System.exit() be called in a Swing-app?

后端 未结 7 1523
情书的邮戳
情书的邮戳 2021-01-18 02:04

In a Swing-app is it okay to invoke System.exit() from any thread? (e.g. on the EDT?)

7条回答
  •  抹茶落季
    2021-01-18 02:39

    Since the VM is terminated after the System.exit() call I don't think it makes any difference from which thread the call is being made.

提交回复
热议问题