Java - AWT/Swing

beep

A simple beep, which is used for error messages, can be produced like this:


java.awt.Toolkit.getDefaultToolkit().beep();