{
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
getPrefs().backupLocation = fileChooser.getSelectedFile();
// Write to either HJT
JreepadWriter writer = new TreepadWriter(getPrefs().getEncoding());
OutputStream fos = new FileOutputStream(getPrefs().backupLocation);
writer.write(fos, document);
fos.close();
setCursor(Cursor.getDefaultCursor());
return true;
}