Sunday, 20 August 2017

How To Play A Beep/Alert Sound On Mac In Java

I have tried using both



Toolkit.getDefaultToolkit().beep(); and



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



and neither are actually playing a sound. I tried running the code in my IDE (CodeRunner 2) and in Terminal to see if it made a difference, which it didn't.




If anyone know another way to do this or why it isn't working, please let me know



Thanks!

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...