ajout selection etudiant BD, et petite modif Visuelle
This commit is contained in:
@@ -4,6 +4,8 @@ import javax.swing.JButton;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JScrollPane;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Font;
|
||||
import java.awt.GridLayout;
|
||||
import fr.iutfbleau.projetIHM2022FI2.API.Groupe;
|
||||
@@ -38,8 +40,8 @@ public class FenetreGroupe{
|
||||
if(g.getType()==TypeGroupe.PARTITION || g.getType()==TypeGroupe.ROOT)
|
||||
taille--;
|
||||
if(g.getSousGroupes().size()>0)
|
||||
this.pan.setLayout(new GridLayout(8, 1));
|
||||
else{this.pan.setLayout(new GridLayout(7, 1));}
|
||||
this.pan.setLayout(new GridLayout(7, 1));
|
||||
else{this.pan.setLayout(new GridLayout(6, 1));}
|
||||
JPanel tache=new JPanel(new GridLayout(1,taille));
|
||||
if(g.getType()!=TypeGroupe.ROOT){
|
||||
JButton bout=new JButton(g.getPointPoint().getName());
|
||||
@@ -54,6 +56,7 @@ public class FenetreGroupe{
|
||||
tache.add(ajouter);
|
||||
JButton supprimer=new JButton("supr");
|
||||
supprimer.addActionListener(new ObservateurModifGroupe(m, g));
|
||||
supprimer.setBackground(Color.RED);
|
||||
tache.add(supprimer);
|
||||
if(g.getType()!=TypeGroupe.PARTITION){
|
||||
JButton creer=new JButton("new Groupe");
|
||||
@@ -61,15 +64,16 @@ public class FenetreGroupe{
|
||||
tache.add(creer);
|
||||
}
|
||||
this.pan.add(tache);
|
||||
JLabel titre=new JLabel("Group : "+g.getName(), JLabel.CENTER);
|
||||
JLabel titre=new JLabel("Groupe : "+g.getName(), JLabel.CENTER);
|
||||
titre.setFont(new Font(Font.SERIF, Font.BOLD, titre.getFont().getSize()+10));
|
||||
this.pan.add(titre);
|
||||
this.pan.add(new JLabel("id= "+String.valueOf(g.getId()),JLabel.CENTER));
|
||||
this.pan.add(new JLabel("min= "+String.valueOf(g.getMin())+"\t || \t max= "+String.valueOf(g.getMax()),JLabel.CENTER));
|
||||
JButton refresh= new JButton("Resfresh");
|
||||
refresh.addActionListener(new ObservateurChangeGroupe(m, g));
|
||||
refresh.setBackground(Color.BLACK);
|
||||
refresh.setForeground(Color.WHITE);
|
||||
this.pan.add(refresh);
|
||||
this.pan.add(new JLabel("Type: "+g.getType().name(), JLabel.CENTER));
|
||||
this.pan.add(new JLabel("Type: "+g.getType().name()+"\t || \t id="+String.valueOf(g.getId()), JLabel.CENTER));
|
||||
this.pan.add(new JLabel("Sous groupe:",JLabel.CENTER));
|
||||
if(g.getSousGroupes().size()>0){
|
||||
JPanel sous=new JPanel(new GridLayout(g.getSousGroupes().size(), 1));
|
||||
|
Reference in New Issue
Block a user