_frame.setLocationRelativeTo(_parentFrame);
}
initFrame();
- _frame.setVisible(true);
+ final Photo photo = _app.getTrackInfo().getCurrentPhoto();
+ if (photo.getWidth() <= 0 || photo.getHeight() <= 0) {
+ _app.showErrorMessageNoLookup(getNameKey(), I18nManager.getText("error.showphoto.failed")
+ + " : " + photo.getName());
+ }
+ else {
+ _frame.setVisible(true);
+ }
}
/**
{
_frame.setVisible(false);
Photo photo = _app.getTrackInfo().getCurrentPhoto();
- _frame.setTitle(photo.getFile().getName());
- _label.setText("'" + photo.getFile().getName() + "' ("
+ _frame.setTitle(photo.getName());
+ _label.setText("'" + photo.getName() + "' ("
+ photo.getWidth() + " x " + photo.getHeight() + ")");
_photoThumb.setPhoto(photo);
}