0

Hey,

Is there a way to play a system beep on mac os x in Java? I usually use the beep function in Toolkit class for my PC but I tried the beep function in Toolkit but it doesn't work on my mac. Any help?

Thanks in advance!

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by harinath_2007
0

Instead of using Toolkit class , try using ascii code..

System.out.println("\007");

Inform me whether it works or not......

0

I think it should work.
Did you tried it in C

printf("\a");

The other alternative is call the exe file from the java..

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.