On Tue, 2004-12-07 at 16:21 -0500, Miguel wrote:
> I wrote:
> > This is not going to work ... stand by and I'll throw something together
> > within the next few minutes.
> 
> 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 is the function signature of allocateViewer()? Supplying a JFrame
does not fix the errors

I've placed the edited code at
http://blue.chem.psu.edu/~rajarshi/CDKIntegretion2.java

Thanks for looking into this - are there any javadoc API documents?


-------------------------------------------------------------------
Rajarshi Guha <[EMAIL PROTECTED]> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
Gravity brings me down.




-------------------------------------------------------
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

Reply via email to