pnl.add(new JLabel(tr("Please select the imagery layer.")), GBC.eol());
pnl.add(layerList, GBC.eol());
ExtendedDialog ed = new ExtendedDialog(Main.parent, tr("Select imagery layer"), new String[]{tr("Download"), tr("Cancel")});
ed.setButtonIcons(new String[]{"dialogs/down", "cancel"});
ed.setContent(pnl);
ed.showDialog();
if (ed.getValue() != 1) {
return null;
}
return (WMSLayer) layerList.getSelectedItem();
}