This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "beeps and dings" Watch "beeps and dings" New topic
Author

beeps and dings

fred baby
Greenhorn

Joined: Jul 09, 2002
Posts: 7
is there anyway to send windows-style beeps and dings without having to use javax.media 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"
Sheriff

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


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

Joined: Dec 10, 2001
Posts: 7023
fred,
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 (javax.media). 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: http://aspose.com/file-tools
 
subject: beeps and dings
 
It's not a secret anymore!