550551552553554555556557558559560561562563564
"File already exists, replace?", "Warning", JOptionPane.YES_NO_OPTION); if (response != JOptionPane.YES_OPTION) { throw new UserCancelledException(); } } return fileChooser.getSelectedFile(); } else { throw new UserCancelledException(); } }
569570571572573574575576577
int result = showSaveDialog(); if (result == JFileChooser.APPROVE_OPTION) { return fileChooser.getSelectedFile(); } else { throw new UserCancelledException(); } }