WindowListener
은 인터페이스입니까? 그러나 다음과 같이 인스턴스화가 유효한 방법은 무엇입니까? 인터페이스를 인스턴스화 할 수 없습니까?windowListener 인터페이스를 인스턴스화하는 것이 유효합니까?
WindowListener l1=new WindowListener() {
public void windowOpened(WindowEvent e) {
// TODO Auto-generated method stub
}
public void windowIconified(WindowEvent e) {
// TODO Auto-generated method stub
}
public void windowDeiconified(WindowEvent e) {
// TODO Auto-generated method stub
}
public void windowDeactivated(WindowEvent e) {
// TODO Auto-generated method stub
}
public void windowClosing(WindowEvent e) {
// TODO Auto-generated method stub
}
public void windowClosed(WindowEvent e) {
// TODO Auto-generated method stub
}
public void windowActivated(WindowEvent e) {
// TODO Auto-generated method stub
}
};
[* Window Listener 작성 방법 *] (http://docs.oracle.com/javase/tutorial/uiswing/events/windowlistener.html) – trashgod