} catch (UnsupportedCharsetException ex2) {
JOptionPane.showMessageDialog(frame, Globals.lang("Could not save file. "
+"Character encoding '%0' is not supported.", encoding),
Globals.lang("Save database"), JOptionPane.ERROR_MESSAGE);
throw new SaveException("rt");
} catch (SaveException ex) {
if (ex.specificEntry()) {
// Error occured during processing of
// be. Highlight it:
int row = mainTable.findEntry(ex.getEntry()),
topShow = Math.max(0, row-3);
mainTable.setRowSelectionInterval(row, row);
mainTable.scrollTo(topShow);
showEntry(ex.getEntry());
}
else ex.printStackTrace();
JOptionPane.showMessageDialog
(frame, Globals.lang("Could not save file")
+".\n"+ex.getMessage(),
Globals.lang("Save database"),
JOptionPane.ERROR_MESSAGE);
throw new SaveException("rt");
} finally {
frame.unblock();
}