ajout en modification en temps réel
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user