BUT2/DEV/DEV2.1/CM1/Q4_Debut/ActionFenetre.java~

35 lines
848 B
Java
Raw Permalink Normal View History

2023-10-23 13:23:36 +02:00
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class ActionFenetre implements WindowListener{
private JFrame fenetre;
ActionFenetre(JFrame fenetre){
this.fenetre = fenetre;
}
@Override
public void windowActivated(WindowEvent evenement){
}
@Override
public void windowClosed(WindowEvent evenement){
}
@Override
public void windowClosing(WindowEvent evenement){
}
@Override
public void windowDeactivated(WindowEvent evenement){
}
@Override
public void windowDeiconified(WindowEvent evenement){
}
@Override
public void windowIconified(WindowEvent evenement){
this.fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
@Override
public void windowOpened(WindowEvent evenement){
System.out.println("Edouard");
}
}