[求助]如何关闭用awt创建的窗口
具体内容如下:就是哪个什么windowslistener不对《不知为什么帮个忙,怎么才能让那个窗口正常关闭呢?class MyClass implements WindowListener{
public void windowOpened(WindowEvent e){}
public void windowClosing(WindowEvent e){
System.exit(0);
}
public void windowClosed(WindowEvent e){}
public void windowActivated(WindowEvent e){}
public void windowIconified(WindowEvent e){}
public void windowDeiconified(WindowEvent e){}
public void windowDeactivated(WindowEvent e){}
}
这样就好了
dispose()
方法可以关闭