possibiliter même nom etudiant et diminution ressource prise lors du rafraîchissement

This commit is contained in:
2022-11-14 12:26:45 +01:00
parent 3d1dc90f41
commit 2166150995
4 changed files with 43 additions and 10 deletions

View File

@@ -14,9 +14,22 @@ import fr.iutfbleau.projetIHM2022FI2.Graphic.Controller.ObservateurModifGroupe;
public class FenetreGroupe extends JPanel{
private Groupe g;
private Model m;
public FenetreGroupe(Groupe g, Model m){
super();
this.g=g;
this.m=m;
this.draw();
}
public Groupe getG() {
return this.g;
}
public void refresh(){
this.removeAll();
this.draw();
this.revalidate();
}
private void draw(){
if(g!=null){
this.setLayout(new GridLayout(11+g.getSousGroupes().size(), 1));
JButton bout=new JButton("point point");