ajout étudiant récursif

This commit is contained in:
2022-11-14 17:41:16 +01:00
parent 2166150995
commit 2618f46017
4 changed files with 33 additions and 17 deletions

View File

@@ -25,10 +25,9 @@ public class ObservateurFenetre implements WindowListener{
@Override
public void windowClosing(WindowEvent e) {
JFrame fenetre= (JFrame) e.getSource();
int confirmation = JOptionPane.showConfirmDialog(fenetre.getContentPane(), "Voulez vous sauvegarder Avant de quitter?", "Quitter", JOptionPane.YES_NO_OPTION);
if(confirmation != JOptionPane.OK_OPTION);
fenetre.dispose();
int confirmation = JOptionPane.showConfirmDialog(fenetre.getContentPane(), "Voulez vous quitter?", "Quitter", JOptionPane.YES_NO_OPTION);
if(confirmation == JOptionPane.YES_OPTION);
fenetre.dispose();
}
@Override