LogUtils.warn(e1);
}
}
protected void updateView(final File file) throws MalformedURLException, IOException {
final BitmapViewerComponent viewer = new BitmapViewerComponent(file.toURI());
viewer.setHint(Image.SCALE_FAST);
final Dimension size = getSize();
size.width -= 2 * BORDER_WIDTH;
size.height -= 2 * BORDER_WIDTH;
viewer.setPreferredSize(size);
viewer.setSize(size);
viewer.setLocation(BORDER_WIDTH, BORDER_WIDTH);
add(viewer);
viewer.revalidate();
viewer.repaint();
}