10 January 2010

Playing default system sounds in Java

Playing default system sounds in Java | Java.net
final Runnable runnable = Toolkit.getDefaultToolkit().getDesktopProperty("win.sound.exclamation");
if (runnable != null)
runnable.run();