User ee508a317e
01-11-2010 15:36:55
Hello, I am investigating trying to embed the Marvin bean in an app and am having a couple of issues using MSketchPane as shown above: (1) How do I set no molecule (i.e. empty) in MSketchpane when it has a molecule set? setMol (aString) with aString = "" does not work. I am using setMol (aString) to set a peptide structure. (2) I get an exception every time in the console on creating the MSKetchPane despite including ALL of the jars on my classpath (except the DLL which is presumably platform specific): Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException Also are any parameters required to be set for this simple usage? The example does not set any so presumably it works by default without setting any? Thanks. Tim
at chemaxon.marvin.sketch.swing.SketchPanel.molLoaded(Unknown Source)
at chemaxon.marvin.sketch.swing.SketchPanel.setMol(Unknown Source)
at chemaxon.marvin.beans.MSketchPane.setMol(Unknown Source)
at chemaxon.marvin.beans.MSketchPane.setMol(Unknown Source)
at ...