modif estetique et correction de bug
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user