File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Making it beep Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Making it beep" Watch "Making it beep" New topic
Author

Making it beep

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
I have a java application that beeps using the
statement - System.out.println((char)7);
Recently this application changed so that it no longer is started from a bat file, therefore has no dos window. As a result, it doesn't beep anymore. Is there another way of accomplishing this?
Thanks,
Barry
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Toolkit.getDefaultToolkit().beep()


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Originally posted by Michael Morris:
Toolkit.getDefaultToolkit().beep()

Mike,
I tried that one but I didn't hear a dicky burd.
-Barry ( the Gaunt one )
[ June 10, 2003: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
I tried that one but I didn't hear a dicky burd.
Interesting. It works fine on my machine. I even used it in my SCJD assignment when a user input a non-digit into a text box. What OS are you using?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making it beep