Ola wrote:

> Let's say I have a JmolViewer in a panel and a CDKmolecule like this:
>
> JmolViewer viewer;
> CDKMolecule mol2;
>
> How do I load the molecule in the viewer?

I don't remember all the details right now, but here are some things for
you to investigate ...

When you create the viewer you need to pass in a ModelAdapter. This
ModelAdapter provides an API that Jmol uses to query the model.

In your case, you need to pass in an instance of
org.jmol.adapter.cdk.CdkModelAdapter

Once you have your cdk model in hand, you need to call

JmolViewer.openClientFile("fullPathName", "modelName", mol2);


Miguel



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to