import javax.sound.sampled.*; import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class Piiks1Rakend extends Applet implements ActionListener{ Button nupp=new Button("Piiksu"); public Piiks1Rakend(){ setLayout(new BorderLayout()); add(nupp); nupp.addActionListener(this); } public void actionPerformed(ActionEvent e){ try{ int kandesagedus =1000; byte[] andmed=new byte[5*kandesagedus]; //5 sekundit for(int i=0; i