// MODULE: GuiList.java // AUTEUR: IFT1170 // OBJET: montrer les choix et les listes import java.awt.*; import java.awt.event.*; public class GuiList extends FenetreFermante implements ItemListener, ActionListener { private String depart[] = { "Marseille","Stockholm", "Montréal"}; private String arrivee[] = { "Paris","Umea", "Québec"}; private String noms[] = {"Tremblay","Simard","Plamondon","Ouelet","Thibaut","Bedard"}; private List liste; private Choice fromChoice,toChoice; private Label fromLabel, toLabel, nomLabel; // le constructeur public GuiList(int l,int h, String titre) { super(l,h); setTitle(titre); setLayout(new FlowLayout()); Panel p1 = new Panel(); Panel p2 = new Panel(); fromLabel = new Label("de:"); toLabel = new Label("vers:"); fromChoice = new Choice(); toChoice = new Choice(); for (int i=0; i