OP: So would it be accessed like win.sound.windows_navigation_start?
No....I don't believe you can access the file through the Windows Audio Feedback Properties, it just doesn't seem to be available that way. Of all the audio feedback sounds available in the Windows OS there are really only a handful of them that are supported and can be utilized with the Toolkit.getDesktopProperty() method and these audio sound properties are:
win.sound.asterisk
win.sound.close
win.sound.default
win.sound.exclamation
win.sound.exit
win.sound.hand
win.sound.maximize
win.sound.menuCommand
win.sound.menuPopup
win.sound.minimize
win.sound.open
win.sound.question
win.sound.restoreDown
win.sound.restoreUp
win.sound.start
If you want to see which audio feedback sounds are supported on your Windows system use this code:
System.out.println("Supported Windows Audio Property Names");
System.out.println("======================================");
String propnames[] = (String[]) Toolkit.getDefaultToolkit().getDesktopProperty("win.propNames");
for (String propname : propnames) {
if (propname.startsWith("win.sound.")) {
System.out.println(propname);
}
}
I would suspect that you already know this and I would imagine you already know that because the property is available it doesn't necessarily mean you will hear an audible sound when trying to use some of them (at least not for everyone). As an example, using the "win.sound.start" property does not give me any audio feedback whatsoever no matter what I do. I'm not even sure I know what that particular audio feedback is for.
So, with the above in mind the only way to utilize the Windows supplied click sound which happens to be the Windows Navigation Start.wav file located in the C:\Windows\media\ directory is to use one of Java's Audio Classes. In the example code below we use the Clip class along with the AudioInputStream and the AudioSystem classes, all from the javax.sound.sampled library.
private void playWav(String soundFilePath) {
File sFile = new File(soundFilePath);
if (!sFile.exists()) {
String ls = System.lineSeparator();
System.err.println("Can not locate the supplied sound file!" +
ls + "(" + soundFilePath + ")" + ls);
return;
}
try {
Clip clip;
try (AudioInputStream audioInputStream = AudioSystem.
getAudioInputStream(sFile.getAbsoluteFile())) {
clip = AudioSystem.getClip();
// Rewind clip to beginning.
// Not really required in this example!
// It's just good to know.
clip.setFramePosition(0);
clip.open(audioInputStream);
}
clip.start();
}
catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {
Logger.getLogger("playWav()").log(Level.SEVERE, null, ex);
}
}
And to use this method:
playWav("C:/Windows/media/Windows Navigation Start.wav");
If you've gone this far then you may as well just download and embed your own Click sound file rather than relying on the Windows file. At least that way it can work on almost any platform.