1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
public PageListe(Fenetre fenetre){
this.setLayout(new GridLayout(3,1));
this.titre = new JLabel();
this.liste = new JLabel();
liste.setSize(100, 100);
JScrollPane scrollPane = new JScrollPane(liste);
//this.liste = new JTextArea(15, 50);
JPanel panelAction = new JPanel(new GridLayout(3,1));
this.choix = new JTextField();
this.valider = new JButton("Valider");
this.valider.addActionListener(this);
this.annuler = new JButton("Annuler");
this.annuler.addActionListener(this);
this.add(titre);
//this.add(liste);
this.add(scrollPane);
this.add(panelAction);
panelAction.add(choix);
panelAction.add(valider);
panelAction.add(annuler); |
Partager