跟监听windowClosing事件一样,需要自己添加退出的代码
public static void main(String args[]) {
JOptionPane.showMessageDialog(null,"");
System.exit(0);
}
或者用javaw命令来运行程序
public static void main(String args[]) {
JOptionPane.showMessageDialog(null,"");
System.exit(0);
}
或者用javaw命令来运行程序
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货