We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,692 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Is there a way to play a system beep on mac os x?

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
16 Hours
Discussion Span
1 Year Ago
Last Updated
4
Views
caswimmer2011
Light Poster
32 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

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

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

harinath_2007
Posting Pro
509 posts since Aug 2010
Reputation Points: 108
Solved Threads: 46
Skill Endorsements: 3

Nah, no beep

caswimmer2011
Light Poster
32 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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..

harinath_2007
Posting Pro
509 posts since Aug 2010
Reputation Points: 108
Solved Threads: 46
Skill Endorsements: 3

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.2964 seconds using 2.71MB