public boolean promptForIdentity(String message) {
final JFileChooser fc = new JFileChooser();
fc.setCurrentDirectory(new File("."));
fc.setDialogTitle(message);
fc.setFileHidingEnabled(false);
int response = fc.showDialog(null, "Select");
if (response == JFileChooser.APPROVE_OPTION) {
identity = fc.getSelectedFile().getAbsolutePath();
return true;
}
return false;