Package versusSNP.gui.widgets

Examples of versusSNP.gui.widgets.ProgressBar


  public void run() {
    boolean createProgressBar = false;
    if (progressBar == null)
      createProgressBar = true;
    if (createProgressBar)
      progressBar = new ProgressBar(UICaption.progress_caption_load_fasta, UICaption.progress_label_load_fasta, true);
    progressBar.setVisible(true);
    if (readFile(path, genome)) {
      genome.attachSequences(sequences);
    }
    if (createProgressBar)
View Full Code Here


      return true;
  }

  @Override
  public void run() {
    ProgressBar progressBar = new ProgressBar(UICaption.progress_caption_load_orf, UICaption.progress_label_load_orf, true);
    progressBar.setVisible(true);
    if (readFile(path, genome)) {
      if (path2 != null) {
        new Thread(new FastaFile(path2, genome)).start();
      }
      document.addGenome(genome);
    }
    progressBar.dispose();
  }
View Full Code Here

  }
 
  @Override
  public void run() {
    Parameter.createTempDirectory();
    ProgressBar progressBar = new ProgressBar(UICaption.progress_caption_run_blast, UICaption.progress_label_run_blast, true);
    progressBar.setVisible(true);
    try {
      Process proc;
      BufferedReader stderr;
      String line;
      proc = Runtime.getRuntime().exec(cmd1.toString());
      stderr = new BufferedReader(new InputStreamReader(proc.getErrorStream()));
      while ((line = stderr.readLine()) != null) {
        System.out.println(line);
      }
      proc = Runtime.getRuntime().exec(cmd2.toString());
      stderr = new BufferedReader(new InputStreamReader(proc.getErrorStream()));
      while ((line = stderr.readLine()) != null) {
        System.out.println(line);
      }
      proc.waitFor();
      progressBar.setLabelAntTitle(UICaption.progress_label_parse_blast, UICaption.progress_caption_parse_blast);
      new Thread(new BlastParser(oPath, document)).start();
    } catch (IOException e) {
      JOptionPane.showMessageDialog(null, UICaption.dialog_exception_runtime_exec, UICaption.dialog_caption_error, JOptionPane.ERROR_MESSAGE);
      return;
    } catch (InterruptedException e) {
      JOptionPane.showMessageDialog(null, UICaption.dialog_exception_runtime_exec, UICaption.dialog_caption_error, JOptionPane.ERROR_MESSAGE);
      return;
    } finally {
      progressBar.dispose();
    }
  }
View Full Code Here

      return false;
    }
  }
  @Override
  public void run() {
    ProgressBar progressBar = new ProgressBar(UICaption.progress_caption_parse_blast, UICaption.progress_label_parse_blast, true);
    progressBar.setVisible(true);
    if (parse(path)) {
//      document.addBlastList(blastList);
      document.getQueryGenome().attachBlastSets(blastList, document.getSubjectGenome());
      document.updateAllViews();
    }
    progressBar.dispose();
  }
View Full Code Here

TOP

Related Classes of versusSNP.gui.widgets.ProgressBar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.