import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class AwtList2 extends Applet implements ActionListener{ List list1=new List(3, true); //Kolm nähtavat rida ning true lubab mitut korraga märgistada. TextArea ta1=new TextArea(3, 40); Button kysi=new Button("Küsi"); public void init(){ list1.add("Sinine"); list1.add("Punane"); list1.add("Kollane"); list1.add("Valge", 0); //algusse setLayout(new BorderLayout()); add("North", list1); add("Center", ta1); add("South", kysi); kysi.addActionListener(this); } public void actionPerformed(ActionEvent e){ String[] tulemused=list1.getSelectedItems(); StringBuffer sb=new StringBuffer(); for(int i=0; i