Package edu.stanford.genetics.treeview

Examples of edu.stanford.genetics.treeview.SwingWorker


    * Called to start the task. I don't know why we bother with the ActualTask class, so don't ask.
    */
    void go(DataModel tvmodel) {
      final DataModel model = tvmodel;
      setCurrent(0);
      final SwingWorker worker = new SwingWorker() {
        public Object construct() {
          return new ActualTask(model);
        }
      };
      worker.start();
    }
View Full Code Here


    /**
    * Called to start the task. I don't know why we bother with the ActualTask class, so don't ask.
    */
    void go() {
      setCurrent(0);
      final SwingWorker worker = new SwingWorker() {
        public Object construct() {
          return new ActualTask();
        }
      };
      worker.start();
    }
View Full Code Here

  /**
   * @throws Exception
   */
  private void attemptRegistration() throws Exception {
    loadProgress = new LoadProgress("Registering Java Treeview...", null);
      final SwingWorker worker = new SwingWorker() {
        public Object construct() {
          run();
          return null;
        }
      };
      // start up the worker thread
      worker.start();
      loadTimer.start();

      // show a modal dialog, should block until loading done...
      loadProgress.setIndeterminate(true);
      loadProgress.pack();
View Full Code Here

  }
 
  public void loadInto() throws LoadException {
    loadProgress = new LoadProgress2(targetModel.getFileSet().getRoot(), parent);
    loadProgress.setPhases(phases);
    final SwingWorker worker = new SwingWorker() {
      public Object construct() {
        run();
        return null;
      }
    };
    // start up the worker thread
    worker.start();
    loadTimer = new javax.swing.Timer(200, new TimerListener());
    loadTimer.start();
    // show a modal dialog, should block until loading done...
    loadProgress.setIndeterminate(true);
    ((LoadProgress2) loadProgress).pack();
    loadProgress.setVisible(true);
   
    // but just in case it doesn't, we'll join on the worker
    try {
      worker.join();
    } catch (InterruptedException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    // System.out.println("loadNew 6, ex: " + fileLoader.getException());
View Full Code Here

TOP

Related Classes of edu.stanford.genetics.treeview.SwingWorker

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.