import java.applet.Applet; import java.io.*; import java.awt.event.*; import java.awt.*; public class katse extends Applet implements ActionListener{ TextArea ta=new TextArea(10,50); TextField tf2=new TextField("",50); Button bt= new Button("vajuta"); public katse(){ Panel p=new Panel(new GridLayout(2, 1)); p.add(ta); p.add(tf2); add(p); add (bt); bt.addActionListener(this); } public void paint(Graphics g){ g.drawImage(Toolkit.getDefaultToolkit().getImage("Kylie.jpg"), 0, 0, getSize().width, getSize().height, this); } public void actionPerformed(ActionEvent e) { try{ int i; int j; BufferedReader sisse=new BufferedReader( new FileReader("proov.txt") ); String tahed="abcdefghijklmnopqrsðzþtuõäöüvwxy"; int tahearvud[]=new int[tahed.length()]; String rida=sisse.readLine(); while(rida!=null){ ta.append(rida+"\n"); System.out.println(rida); for (i=0; i