Breaking News
Home / Java / Java Snippets / How to generate beep in Java?

How to generate beep in Java?

generate beep sound in JavaThis simple snippet shows how to produce the Beep Sound in Java using the AWT Toolkit.

The key thing here is is the delay introduced in the subsequent beeps. Changing the delay between beeps, you can create different sound patterns or rhythms. This beep can be used in games development or signalling the user for some input errors or for some sort of notification.


Check Also

How to progamatically get the Java version?

Snippet The key here is to use the system property java.version and get minor and …

Advertisment ad adsense adlogger