This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Beep in Java  RSS feed

 
Felix Devasia
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can anyone explain me how you could produce a beep Sound(thru system speaker)in java?
Thanks
 
Matt Siegel
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
char c = 7;
System.out.println(c);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!