debut recupération MPD et on vas manger

This commit is contained in:
2022-11-12 22:11:05 +01:00
parent 44b20e6b73
commit a2ca1d9761
2 changed files with 14 additions and 9 deletions

View File

@@ -11,29 +11,27 @@ import javax.swing.JFrame;
import javax.swing.*;
import java.awt.*;
import fr.iutfbleau.projetIHM2022FI2.API.AbstractGroupeFactory;
import fr.iutfbleau.projetIHM2022FI2.API.Groupe;
import fr.iutfbleau.projetIHM2022FI2.API.TypeGroupe;
import fr.iutfbleau.projetIHM2022FI2.Graphic.View.PaintGroupe;
import fr.iutfbleau.projetIHM2022FI2.MNP.AbstractGroupeFactoryNP;
import fr.iutfbleau.projetIHM2022FI2.MNP.GroupeNP;
public class Graphic{
private PaintGroupe paint;
private JFrame fenetre;
LinkedList<Groupe> groupe;
private AbstractGroupeFactory agf;
public Graphic(){
this.fenetre=new JFrame("Gestion des étudiants");
this.fenetre.setSize(1000, 720);
this.fenetre.setLocation(200,200);
this.fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.groupe=this.getGroupe();
for(Groupe g: this.groupe){
System.out.println(g.monPrint());
}
agf=this.getPromo();
this.fenetre.setVisible(true);
}
private LinkedList<Groupe> getGroupe(){
LinkedList<Groupe> ll= new LinkedList<Groupe>();
private AbstractGroupeFactory getPromo(){
try{
Class.forName("org.mariadb.jdbc.Driver");
try{
@@ -74,6 +72,6 @@ public class Graphic{
}catch(ClassNotFoundException e){
System.out.println("pilote non disponible");
}
return ll;
return null;
}
}