petit oubli
This commit is contained in:
parent
c3d4688cd3
commit
bc243424f2
@ -25,9 +25,9 @@ public class ObservateurFenetre implements WindowListener{
|
|||||||
@Override
|
@Override
|
||||||
public void windowClosing(WindowEvent e) {
|
public void windowClosing(WindowEvent e) {
|
||||||
JFrame fenetre= (JFrame) e.getSource();
|
JFrame fenetre= (JFrame) e.getSource();
|
||||||
int confirmation = JOptionPane.showConfirmDialog(fenetre.getContentPane(), "Voulez vous auvegarder Avant de quitter?", "Quitter", JOptionPane.YES_NO_OPTION);
|
int confirmation = JOptionPane.showConfirmDialog(fenetre.getContentPane(), "Voulez vous sauvegarder Avant de quitter?", "Quitter", JOptionPane.YES_NO_OPTION);
|
||||||
if(confirmation != JOptionPane.OK_OPTION);
|
if(confirmation != JOptionPane.OK_OPTION);
|
||||||
|
|
||||||
fenetre.dispose();
|
fenetre.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ public class Model{
|
|||||||
g.setName(name);
|
g.setName(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addEtudiant(Groupg g, Etudiant e){
|
public void addEtudiant(Groupe g, Etudiant e){
|
||||||
g.addEtudiant(e);
|
g.addEtudiant(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user