public void run() {
try {
currentExportPath = f.getCanonicalPath();
OutputStream ostream =
new BufferedOutputStream(new FileOutputStream(f));
trans.writeImage(img, ostream);
ostream.flush();
ostream.close();
statusBar.setMessage(
resources.getString("Document.export"));
} catch (IOException ex) { }