package fr.iutfbleau.projetIHM2022FI2.Graphic.View; import javax.swing.JLabel; import javax.swing.JPanel; import fr.iutfbleau.projetIHM2022FI2.API.Etudiant; import javax.swing.JButton; import java.awt.*; public class PanelEtudiant extends JPanel{ private Etudiant e; private JButton supprimer; private JButton deplacer; public PanelEtudiant(Etudiant e){ super(new GridLayout(1,2,20,10)); this.e=e; JLabel label=new JLabel(" "+e.getNom()+" "+e.getPrenom()+" "+e.getId(), JLabel.LEFT); this.supprimer=new JButton("supr"); this.deplacer=new JButton("change"); this.add(label); JPanel bouton=new JPanel(new GridLayout(1,2)); bouton.add(this.supprimer); bouton.add(this.deplacer); this.add(bouton); } }