public void run() {
try {
currentSavePath = f;
OutputStream ostream =
new BufferedOutputStream(new FileOutputStream(f));
trans.writeImage(img, new TranscoderOutput(ostream));
ostream.flush();
ostream.close();
} catch (Exception ex) { }
statusBar.setMessage
(resources.getString("Message.done"));