if(text == inputLocation && inputFormats.getSelectedIndex() == 2){
final JTextField textField = text;
(new Thread(new Runnable(){
public void run(){
if(bioportalDialog == null){
importer = new OntologyImporter(new BioPortalRepository());
bioportalDialog = importer.showImportWizard(frame);
}else{
bioportalDialog.setVisible(true);
}
while(bioportalDialog.isShowing()){