import java.awt.*; import java.awt.event.*; import java.applet.Applet; import java.util.*; import java.io.*; public class Telekas extends Applet implements ActionListener{ String nimi="Sony"; Button nupp=new Button("Näita"); //Image pilt1=Toolkit.getDefaultToolkit().getImage("pilt1.gif"); //Image pilt2=Toolkit.getDefaultToolkit().getImage("pilt2.gif"); File fail=new File("."); LinkedList faililist=new LinkedList(); int i; public Telekas(){ //setLayout(new BorderLayout()); //add(nupp, BorderLayout.NORTH); add(nupp); nupp.addActionListener(this); } public void paint(Graphics g){ g.drawRect(70, 80, 240, 240); g.drawRect(90, 100, 200, 200); g.drawRect(70, 320, 240, 30); g.setColor(Color.red); g.fillOval(280, 325, 15, 15); g.setColor(Color.black); g.drawString(nimi, 80, 340); } public void actionPerformed(ActionEvent e){ //Graphics gr=Telekas.this.getGraphics(); String[] failid=fail.list(); for(i=0;i