I'm trying to make a simple program that "beeps" ever 45 seconds, 11 times. I don't see why my program won't compile. Please help:
thx,
Kobayashi
code:<HR>Code:import java.awt.*; import java.awt.event.*; import javax.swing.Timer;<P>public class Workout { private AudioClip bonk; public Timer timer; public void init() { bonk = getAudioClip (getCodeBase(), "imsend.wav"); for (int i=0; i<12;i++) { timer = new Timer (45000, bonk.play()); timer.start(); } } }
thx,
Kobayashi