File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes beeps and dings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "beeps and dings" Watch "beeps and dings" New topic

beeps and dings

fred baby

Joined: Jul 09, 2002
Posts: 7
is there anyway to send windows-style beeps and dings without having to use to load the sounds and such? i am developing a test program and i want to give a ding when the person clicks the correct button and an error-chord when the person clicked the incorrect button. thanks in advance.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Topic on Beep

"JavaRanch, where the deer and the Certified play" - David O'Meara
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Take a look at The Java Sound API. Since 1.3 it's part of the standard Java API.
The Java Sound Demo runs fine on my system without the JMF ( It uses the Java Sound API (javax.sound) and the source code is included.
Good Luck.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: beeps and dings
It's not a secret anymore!