possibiliter même nom etudiant et diminution ressource prise lors du rafraîchissement
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user