Sunday, April 27, 2008

Make a beep!

Hi.

A reader asked how to get his program to make a BEEP whenever a user clicks a button. The simplest way of doing this is to import the java.awt.Toolkit library and then add the following code to your application :

Toolkit beeper = Toolkit.getDefaultToolkit();
beeper.beep();

Until next time.

No comments:

Post a Comment