Archived

This topic is now archived and is closed to further replies.

glJunkie

System beep in java!

Recommended Posts

Big Sassy    311
I believe the toolkit has something like that.

Toolkit.getDefaultToolkit().beep();

Take a look here. I don''t know if it works or not though. Never used it myself. Good luck

***********************
          

Share this post


Link to post
Share on other sites
jediknight219    122
Any particular reason you want the system beep like the one when booting? I know of a few ways to get Java to beep, but I''m pretty sure it uses whatever Windows has set for beep(ding.wav on my computer)

Share this post


Link to post
Share on other sites
jediknight219    122
Hmm, that probably works if you''re running the program in a dos/command prompt window. Will it work if you''re running an Applet and it prints to the Java COnsole in Internet Explorer and/or Netscape? With or without the Java Plug-in?

Share this post


Link to post
Share on other sites