请教如何取消windowClosing事件~0~ 你不要写这个方法不就好了吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 先在构造函树里确定这个 JFrame 的缺省 CloseOperation 为 DO_NOTHING_ON_CLOSEsetDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);这样你点击右上角的关闭按扭的时候窗口就不会退出了但这是他仍然可以接受 windowClosing 事件这是你就可以在void this_windowClosing(WindowEvent e) { // your code goes here}中弹出你的对话框 用户确认后用 System.exit(0); 退出 应该可以复写关闭事件吧关注 java swing 怎么实现窗口振动效果 求助。。给思路 关于ListFiles的问题。。。 请看过Thinking in java的请指点 求一个sql写法 新手求救..请问怎么判断键盘有两个键被按下?? 求大神,菜鸟一枚 一对一关系 菜鸟问题 请问JDK安装后需要设置什么? 在连接数据库JDBC中,编译通过,运行时报错显示Exception in thread"main"java.lang.noclassdefFoundError:JDBCDemo 有关JSplitPane的简单问题 求缩放和移动矢量图形源代码
但这是他仍然可以接受 windowClosing 事件
这是你就可以在void this_windowClosing(WindowEvent e) {
// your code goes here
}中弹出你的对话框 用户确认后
用 System.exit(0); 退出
关注