String tempDetector = instrumentDetectorJTextField.getText();
String termDetector = tempDetector.substring(0, tempDetector.lastIndexOf("[") - 1);
String accessionDetector = tempDetector.substring(tempDetector.lastIndexOf("[") + 1, tempDetector.lastIndexOf("]"));
String ontologyDetector = ProjectExportDialog.getOntologyFromCvTerm(accessionDetector);
prideExportDialog.setInstrument(new Instrument(nameJTextField.getText(),
new CvTerm(ontologySource, accessionSource, termSource, null),
new CvTerm(ontologyDetector, accessionDetector, termDetector, null),
cvTerms));
dispose();
}//GEN-LAST:event_okJButtonActionPerformed