This commit is contained in:
EmmanuelTiamzon
2025-09-30 11:15:03 +02:00
parent 7019a3b7ea
commit f389f98e24
6 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import java.awt.*;
import java.awt.event.*;
import java.awt.event.WindowListener;
import javax.swing.*;
public class Controleur extends WindowAdapter {
public Controleur() {
}
// avant fermeture
@Override
public void windowClosing(WindowEvent evenement) {
JOptionPane.showConfirmDialog(null, "Êtes-vous sûr de vouloir fermer cette fenêtre ?");
System.exit(0);
}
}