public void actionPerformed(ActionEvent actionEvent) { AudioTool.getFilename("Open...", 0); if (AudioTool.filename == null || String.instancehelper_isEmpty(AudioTool.filename)) { return; } try { AudioTool.getAudioFromFile(AudioTool.filename); } catch (System.Exception ex) { Throwable.instancehelper_printStackTrace(ex); } }
public void actionPerformed(ActionEvent actionEvent) { AudioTool.getFilename("Save As...", 1); if (AudioTool.filename == null || String.instancehelper_isEmpty(AudioTool.filename)) { return; } try { Utils.writeRawFile(AudioTool.audio, AudioTool.filename); AudioTool.access_000().setEnabled(false); } catch (IOException ex) { Throwable.instancehelper_printStackTrace(ex); } }