tables.clear();
add(new PaneTitle(LOCALE.get("MetadataTitle")));
ImageMetadata meta = null;
try {
meta = info.getMetadata();
}
catch (Throwable t) {
// BadImageFileException, IOException, UnknownImageTypeException
t.printStackTrace();
}
if (meta == null) {
String no = LOCALE.get("NoLabel");
JLabel label = new JLabel(no);
label.setAlignmentX(.5f);
add(Box.createVerticalGlue());
add(label);
add(Box.createVerticalGlue());
error = true;
return;
}
Collection<ImageMetadataDirectory> directories =
meta.getDirectories();
if (directories.isEmpty()) {
String empty = LOCALE.get("EmptyLabel");
JLabel label = new JLabel(empty);
label.setAlignmentX(.5f);
add(Box.createVerticalGlue());