modif estetique et correction de bug

This commit is contained in:
2022-11-14 22:57:17 +01:00
parent 2618f46017
commit df58be5b3e
11 changed files with 265 additions and 296 deletions

View File

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