/**
* 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