/** Launch the application. */
 public static void main(String[] args) {
   try {
     PortalImportDialog dialog = new PortalImportDialog();
     dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
     dialog.setVisible(true);
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
 @Override
 public void run(TaskMonitor arg0) throws Exception {
   CBioPortalClient client = new CBioPortalClient();
   PortalImportDialog.getInstance().setPortalClient(client);
   List<CancerStudy> studies = client.getCancerStudies();
   cancerStudyComboBox.setModel(new DefaultComboBoxModel(studies.toArray()));
   // populate with the first study
   caseSetComboBox.setModel(
       new DefaultComboBoxModel(client.getCaseListsForCurrentStudy().toArray()));
   profileList.setModel(
       new DefaultComboBoxModel(client.getGeneticProfilesForCurrentStudy().toArray()));
 }