📜  setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) 是做什么用的 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:33.694000             🧑  作者: Mango

代码示例1
Calling setDefaultCloseOperation(EXIT_ON_CLOSE) does exactly this. It causes the application to exit when the application receives a close window event from the operating system.