sound prompt alert

edited October 2013 in How To...

stupid question probably but i dont see in references some method " how to prompt the user with some sound system that something happens"... (someting like beep() or alert() or....

Answers

  • Answer ✓

    There is a default sound built into java that can be played with the following line of code:

    java.awt.Toolkit.getDefaultToolkit().beep();
    

    However, if you want to play different, custom sounds, with much more control, you should investigate an audio library such as Minim.

  • minim, of course, but i was looking for sound systems prompt; thanks for your answer...

  • it works. Answered!!!

Sign In or Register to comment.