Package edu.pitt.dbmi.nlp.noble.ontology

Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntology


 
  /**
   * display ontology explorer in a non-modal window
   */
  public static JDialog showOntology(IOntology o){
    final IOntology ont = o;
    final OntologyExplorer exp = new OntologyExplorer();
   
    // init dialog
    JDialog d = new JDialog();
    d.setTitle("OntologyExplorer - ["+ont.getName()+"]");
    d.setModal(false);
    d.setResizable(true);
    d.getContentPane().setLayout(new BorderLayout());
    d.getContentPane().add(exp,BorderLayout.CENTER);
    d.pack();
   
    // start the loading process
    exp.setBusy(true);
    (new Thread(new Runnable(){
      public void run(){
        exp.setRoot(ont.getRoot());
        exp.setBusy(false);
      }
    })).start();
   
    // display
View Full Code Here

TOP

Related Classes of edu.pitt.dbmi.nlp.noble.ontology.IOntology

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.