User a0ee4512d1
24-04-2006 20:14:16
Hi,
I tried to use java class LibraryMCS. The codes I did are something like:
LibraryMCS mcs = new LibraryMCS();
mcs.clear();
//create a number of molecules from smiles
Molecule mol = MolImporter.importMol(smiles);
mcs.addMolecule(mol);
mcs.search();
JFrame frame = new JFrame();
Container c = frame.getContentPane();
TreePanel panel = mcs.createTreePanel();
c.add(panel);
frame.pack();
frame.setVisible(true);
When I run the above codes, I got a blank frame. So my codes may miss some api calls.
Thanks very much in advance.
Yuhong Wang
wangyuh _at_ mail.nih.gov
pack();
setVisible(true);
I tried to use java class LibraryMCS. The codes I did are something like:
LibraryMCS mcs = new LibraryMCS();
mcs.clear();
//create a number of molecules from smiles
Molecule mol = MolImporter.importMol(smiles);
mcs.addMolecule(mol);
mcs.search();
JFrame frame = new JFrame();
Container c = frame.getContentPane();
TreePanel panel = mcs.createTreePanel();
c.add(panel);
frame.pack();
frame.setVisible(true);
When I run the above codes, I got a blank frame. So my codes may miss some api calls.
Thanks very much in advance.
Yuhong Wang
wangyuh _at_ mail.nih.gov
pack();
setVisible(true);