我只知道
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if(e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
}
}
这样就把整个程序关了
如何才能在frame2中只关闭frame2呢?
在线等,解决就结贴
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if(e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
}
}
这样就把整个程序关了
如何才能在frame2中只关闭frame2呢?
在线等,解决就结贴
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货