supression panel inutile
This commit is contained in:
@@ -26,8 +26,6 @@ import fr.iutfbleau.projetIHM2022FI2.Permanent.View.Chargement;
|
||||
*/
|
||||
public class ModelRoot implements Model{
|
||||
|
||||
// le panel qui contient la fenetre de groupe
|
||||
private JPanel panGroupe;
|
||||
// la fenetre de groupe
|
||||
private FenetreGroupe fenGr;
|
||||
//la fenetre d'etudiant
|
||||
@@ -65,7 +63,6 @@ public class ModelRoot implements Model{
|
||||
this.fenEtu=new FenetreEtudiant(this.promo.getPromotion(), this);
|
||||
this.changement=new AbstractChangementFactoryPersistant(this.promo, this.fenetre);
|
||||
}
|
||||
this.panGroupe=new JPanel(new GridLayout(1,1));
|
||||
if(this.promo.getPromotion()!=null){
|
||||
this.showGroupe(this.promo.getPromotion());
|
||||
}else{
|
||||
@@ -82,13 +79,11 @@ public class ModelRoot implements Model{
|
||||
public void showGroupe(Groupe g){
|
||||
if(g!=null)
|
||||
g=this.promo.refreshALL(g);
|
||||
this.panGroupe.removeAll();
|
||||
this.fenetre.getContentPane().removeAll();
|
||||
this.fenGr=new FenetreGroupe(g, this);
|
||||
this.fenEtu=new FenetreEtudiant(g, this);
|
||||
this.fenetre.getContentPane().removeAll();
|
||||
this.panGroupe.add(this.fenGr.getPan());
|
||||
this.panGroupe.revalidate();
|
||||
this.fenetre.add(this.panGroupe);
|
||||
this.fenetre.add(this.fenGr.getPan());
|
||||
JScrollPane scroll=new JScrollPane(this.fenEtu.getPan());
|
||||
scroll.getVerticalScrollBar().setUnitIncrement(15);
|
||||
this.fenetre.add(scroll);
|
||||
|
Reference in New Issue
Block a user