}
}
public void loadSoundButton_clicked() {
try {
JFileChooser chooser = new SoundFileChooser(prefs);
if (prefs.getInputSoundFilePath() != null) {
try {
chooser.setCurrentDirectory(new File(prefs.getInputSoundFilePath()));
}
catch (Exception ex) {
ex.printStackTrace();
}
}
if (chooser.showOpenDialog(flameRootPanel) == JFileChooser.APPROVE_OPTION) {
File file = chooser.getSelectedFile();
prefs.setLastInputSoundFile(file);
project.setSoundFilename(jLayer, file.getAbsolutePath());
enableControls();
}
}