super(s);
setLayout(new FlowLayout());
list = new List(10, false);
list.add("Hello");
list.add("Goodbye");
list.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
System.out.println("Selected: " + list.getSelectedItem());
}
});
add(list);