User c23c5e9da4
23-01-2007 17:29:29
Calling MViewPane.getDocument(0) always returns null. See example below.
import chemaxon.marvin.beans.MViewPane;
import chemaxon.struc.MDocument;
import chemaxon.formats.MolImporter;
public class MarvinEmptyDocument {
public static void main(String[] args) throws Exception {
MViewPane p = new MViewPane();
p.setDocument(0, new MDocument(MolImporter.importMol("c1ccccc1")));
System.err.println(p.getDocument(0));
}
}
Prints out "null"
import chemaxon.marvin.beans.MViewPane;
import chemaxon.struc.MDocument;
import chemaxon.formats.MolImporter;
public class MarvinEmptyDocument {
public static void main(String[] args) throws Exception {
MViewPane p = new MViewPane();
p.setDocument(0, new MDocument(MolImporter.importMol("c1ccccc1")));
System.err.println(p.getDocument(0));
}
}
Prints out "null"