发现两种方法
setVisible
dispose
但是为什么都有延迟啊
为什么不消失
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } });
这个代码是可行的,怎么加快速度?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
JFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)