Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making it beep

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Toolkit.getDefaultToolkit().beep()
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic