Anyway, I call "java.awt.Toolkit.getDefaultToolkit ().beep ()" and hear
nothing. This is on WinXP using 1.4.0 or 1.4.0_01 (doesn't work on
either). I scoured the bug reports and found #4458067 which was related
to a user having the same problem on Linux. The Sun bug investigator
asked the user to try the following program:
import java.awt.*;
import java.awt.event.*;
public class BeepTest {
public static void main(String[] args) {
Frame f = new Frame("BeepTest");
Button b = new Button("Beep");
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Toolkit.getDefaultToolkit().beep();
}
});
f.add(b);
f.pack();
f.setVisible(true);
}
}
And they (and I) still heard no "beep". It ended up that this user had
the following problem: "Turns out that the bell volume value of the
Peripherals.Keyboard gnome control was set to zero."
So, anyone (Bueller?) know if there is a similar setting for WinXP that
could be causing me to not hear a "beep"? And if so, where to access it
(please don't tell me it is in the god-foresaken registry)?
Thanks
The only really universal solution (on the applet level) I could suggest
is:
public class SomeApplet implements ...(besides anything else),
java.applet.AudioClip {
...
AudioClip beep;
...
public void init() {
beep = getAudioClip("URL/to your/beep/in *.au format");
}
...
public void actionPerformed(ActionEvent e) {
beep.play();
}
...
}
Charles Morison <mor...@mindspring.com> wrote in message
news:3D028BB4...@mindspring.com...
Charles:
I tried it on my XP machine and was surprised to discover that it plays a
sound and not just a tone through the speaker. The sound it makes is a
dornk. I don't have a clue the real name of the sound but would like to
know. On my previous 98 machine it didn't use the sound card to make a
sound like it does with XP. So if you don't have speakers you might not
hear a thing.
knute...
Thanks for your feedback.
Regards