Java Notes
Beep
A beep sound can be use to indicate a warning or error. However, it is often better to give a warning dialog box with a description of the problem.To Produce a Beep Sound
- You need to import the Toolkit class:
import java.awt.Toolkit;
- Use this statment in your code:
Toolkit.getDefaultToolkit().beep();