Transférer les fichiers vers 'src/Test'
This commit is contained in:
@@ -18,8 +18,8 @@ import java.util.Objects;
|
||||
public class Controller implements ActionListener, ListSelectionListener {
|
||||
private final BDatabase db;
|
||||
|
||||
private final ProfView pv;
|
||||
private final AdminView av;
|
||||
private ProfView pv = null;
|
||||
private AdminView av = null;
|
||||
private BFrame currentModal;
|
||||
|
||||
private ArrayList<Etudiant> e;
|
||||
@@ -36,10 +36,10 @@ public class Controller implements ActionListener, ListSelectionListener {
|
||||
this.g = this.db.getGroupeList();
|
||||
|
||||
// Les 3 fenetres s'ouvriront en meme temps (Pour le contexte du projet)
|
||||
this.pv = new ProfView(this.e, this.g, this);
|
||||
System.out.println("[+] Demarrage de la vue professeur -> " + this.pv);
|
||||
this.av = new AdminView(this.e, this.g, this);
|
||||
System.out.println("[+] Demarrage de la vue Administrateur -> " + this.av);
|
||||
//this.pv = new ProfView(this.e, this.g, this);
|
||||
//System.out.println("[+] Demarrage de la vue professeur -> " + this.pv);
|
||||
//this.av = new AdminView(this.e, this.g, this);
|
||||
//System.out.println("[+] Demarrage de la vue Administrateur -> " + this.av);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -438,4 +438,18 @@ public class Controller implements ActionListener, ListSelectionListener {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void createProfView () {
|
||||
if (this.pv == null) {
|
||||
this.pv = new ProfView(this.e, this.g, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void createAdminView () {
|
||||
if (this.av == null) {
|
||||
this.av = new AdminView(this.e, this.g, this);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user