aspose file tools*
The moose likes Beginning Java and the fly likes Beep in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Beep in Java" Watch "Beep in Java" New topic
Author

Beep in Java

Felix Devasia
Greenhorn

Joined: Jan 19, 2001
Posts: 13
Hi,
can anyone explain me how you could produce a beep Sound(thru system speaker)in java?
Thanks
Matt Siegel
Ranch Hand

Joined: Jul 18, 2000
Posts: 55
Check out java.awt.Toolkit. It has a method called beep(). It would be used like this:
Toolkit.getDefaultToolkit().beep();
HTH,
Matt
frank davis
Ranch Hand

Joined: Feb 12, 2001
Posts: 1479
char c = 7;
System.out.println(c);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beep in Java