Sunday, April 27, 2008

Make a beep!


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();

Until next time.

No comments:

Post a Comment