debut sauvegarde des modif
This commit is contained in:
@@ -87,7 +87,7 @@ public class ObservateurModifGroupe implements ActionListener{
|
||||
}
|
||||
if(e.getActionCommand()=="renomer"){
|
||||
String nouveau=JOptionPane.showInputDialog(m.getFenetre(), "Rentrer le nouveau Nom");
|
||||
this.groupe.setName(nouveau);
|
||||
m.rename(nouveau, this.groupe);
|
||||
m.showGroupe(this.groupe);
|
||||
}
|
||||
if(e.getActionCommand()=="ajouter"){
|
||||
@@ -98,7 +98,7 @@ public class ObservateurModifGroupe implements ActionListener{
|
||||
JOptionPane.showMessageDialog(m.getFenetre(), "Il y a trop d'etudiant pour le groupe", "erreur", JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
for(Etudiant et:ajout){
|
||||
this.groupe.addEtudiant(et);
|
||||
m.addEtudiant(this.groupe, et);
|
||||
}
|
||||
m.showGroupe(this.groupe);
|
||||
}
|
||||
|
Reference in New Issue
Block a user