Archived

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

System beep in java!

This topic is 5532 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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
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