>> OK Raj, the following should work: >> >> import org.jmol.api.JmolViewer; >> >> ... >> >> JmolViewer viewer = JmolViewer.allocateViewer(awtComponent, jmolAdapter) > > Thanks for the fast reply! > However making this change to CDKIntegration.java gives 2 problems: > > > CDKIntegration2.java:62: cannot find symbol > symbol : method allocateViewer > (JmolPanel,org.jmol.adapter.cdk.CdkJmolAdapter) > location: interface org.jmol.api.JmolViewer > JmolViewer viewer = JmolViewer.allocateViewer(jmolPanel, > jmolAdapter); > ^ > CDKIntegration2.java:112: cannot find symbol > symbol : method allocateViewer(JmolPanel,org.jmol.api.JmolAdapter) > location: interface org.jmol.api.JmolViewer > viewer = JmolViewer.allocateViewer(this, adapter);
What Jmol code are you compiling against? Do you have the latest source? > What is the function signature of allocateViewer()? Supplying a JFrame > does not fix the errors It looks like to me that it is not complaining about the signature. Rather, it does not have the allocateViewer method at all. Look at the source in org.jmol.api.JmolViewer Miguel ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
