private class LoadMetadataActionListener implements ActionListener {
public void actionPerformed(ActionEvent event) {
int confirmResult = JOptionPane.showConfirmDialog(mainFrame, "This will reset the values in all metadata fields with the saved metadata values. Any unsaved changes will be lost. Do you want to continue?", "Reset Metadata Fields", JOptionPane.OK_CANCEL_OPTION);
if (confirmResult == JOptionPane.OK_OPTION) {
if (metadataJob == null) {
metadataJob = new MetadataJob();
}
metadataJob.setDatasetID(datasetIDTextField.getText());
String resultingErrors = metadataJob.loadCurrentMetadata();
if (!StringUtils.isBlank(resultingErrors)) {