import javax.sound.sampled.*; import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class Piiks2aRakend extends Applet implements ActionListener{ Button nupp=new Button("Piiksu"); public Piiks2aRakend(){ setLayout(new BorderLayout()); add(nupp); nupp.addActionListener(this); } public void actionPerformed(ActionEvent e){ try{ int kandesagedus =10000; int sagedus=100; int nr=0; double tous_oktaavites=2; byte[] andmed=new byte[5*kandesagedus]; while(nr