This bug may not be worth fixing since it is specific to OS X, and may be a bug in Java.

Using either the Java applet, or the Jmol application, the command

write "test.pngj"

saves a file that contains the atomic coordinates and the state of Jmol.

In *Windows*, dragging this PNGJ file into the Jmol *application*, or into the *applet* (tested in IE11 and Firefox), loads the molecule contained in the PNGJ file and renders it exactly as when the file was saved, after which it can be rotated etc. in Jmol. AMAZING!

In *OS X*, dropping the PNGJ into the application *works* PROVIDED the application happens to have *exactly the same pixel height and width* as the image (which is the size of the Jmol from which it was saved).

If the recipient Jmol application has a *different size*, an "Input" dialog opens asking to confirm changing the size of Jmol (or you can specify different height and width values). In Windows, this sizing dialog works. In OS X, once that "Input" dialog opens, *Jmol hangs* and has to be forced to quit by the system.

(For Windows, a size mismatch between the applet and the PNGJ doesn't matter. The molecule renders in the size of the applet without asking.)

In *OS X*, dropping the PNGJ file into the *applet* does not load it into the applet. Rather, it displays the image in the PNGJ file (in Firefox) or the drop fails (in Safari).

Tested in OS X Yosemite and Windows 7, with Java 1.8.0_65 in both.
Tested with the applet at http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm
which is Jmol 2015.10.17 and the matched version of the application Jmol.jar.

-Eric
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to