ajout en modification en temps réel

This commit is contained in:
2022-11-15 15:08:13 +01:00
parent df58be5b3e
commit 124dfd8a71
11 changed files with 729 additions and 439 deletions

View File

@@ -8,9 +8,9 @@ import java.awt.Font;
import java.awt.GridLayout;
import fr.iutfbleau.projetIHM2022FI2.API.Groupe;
import fr.iutfbleau.projetIHM2022FI2.API.TypeGroupe;
import fr.iutfbleau.projetIHM2022FI2.Graphic.Model;
import fr.iutfbleau.projetIHM2022FI2.Graphic.Controller.ObservateurChangeGroupe;
import fr.iutfbleau.projetIHM2022FI2.Graphic.Controller.ObservateurModifGroupe;
import fr.iutfbleau.projetIHM2022FI2.Graphic.Model.Model;
public class FenetreGroupe extends JPanel{
@@ -77,7 +77,13 @@ public class FenetreGroupe extends JPanel{
this.add(new JScrollPane(sous));
}
}else{
this.add(new JLabel("Il n'y a pas encore de Groupe"));
JButton creer=new JButton("créer une promo");
creer.addActionListener(new ObservateurModifGroupe(m, g));
this.add(creer);
}
}
public void setG(Groupe g) {
this.g = g;
}
}