자바 API의 java.awt.event.WindowListener에 위치하는 인터페이스이다.
윈도우창의 닫기, 큰화면, 작은화면, 내리기 등을 담당한다.
사용예시
윈도우창의 닫기, 큰화면, 작은화면, 내리기 등을 담당한다.
사용예시
//WindowListener override
public void windowActivated(WindowEvent e) {}
public void windowClosed(WindowEvent e) {}
public void windowClosing(WindowEvent e) {
System.out.println("윈도우 종료..."); //윈도우창 X버튼 클릭할 때
System.exit(0);
}
public void windowDeactivated(WindowEvent e) {}
public void windowDeiconified(WindowEvent e) {}
public void windowIconified(WindowEvent e) {}
public void windowOpened(WindowEvent e) {}
public void windowActivated(WindowEvent e) {}
public void windowClosed(WindowEvent e) {}
public void windowClosing(WindowEvent e) {
System.out.println("윈도우 종료..."); //윈도우창 X버튼 클릭할 때
System.exit(0);
}
public void windowDeactivated(WindowEvent e) {}
public void windowDeiconified(WindowEvent e) {}
public void windowIconified(WindowEvent e) {}
public void windowOpened(WindowEvent e) {}