ADS

Create Beep Sound In Java

An example on generating beep sound using Java agenda in AWT.


Example


import java.awt.*;
class BeepSound
{
public static void main(String args[])
{
Toolkit.getDefaultToolkit().beep();
}
}

I cannot show the output, it is what that you have to hear.

Also see my post on Getting Screen Size and Resolution in Java

Subscribe to receive free email updates:

ADS