Hi,

I found a quirky little issue with getProperty --
it appears to return slightly different
objects on Linux and Windows.

This inconsistency occurs with Jmol 10.9.82,
and was not present in earlier versions whcih I tried
e.g. 10.9.64

I have the following code in my application

        Vector vb =
        (Vector)viewer.getProperty("Object","bondInfo","visible");
        for (int i=0; i < vb.size(); i++) {
            Hashtable b = (Hashtable)vb.get(i);
            Hashtable a1 = (Hashtable)b.get("atom1");
            Hashtable a2 = (Hashtable)b.get("atom2");
            int numa1 = ((Integer)a1.get("atomno")).intValue();
            int numa2 = ((Integer)a2.get("atomno")).intValue();
            System.out.println(numa1 + " " + numa2);

            ...
        }

The println line prints atom indices starting from 1 on linux, 
but from 0 on Windows. Previously, they started from 1 on 
both platforms.

I haven't changed JVM or JDK on either platform. 
Has anything changed in Jmol that could affect this?

Thanks,

Dave
-- 
  Dave Evans
  [EMAIL PROTECTED]
  http://www.davidaevans.org


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to