Create Beep Sound in Java

An example on generating beep sound using Java program 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


Posted by at on

Tags: Abstract Window Toolkit,