Ah, OK. you mean you want that SPT file to be a Jar resource. Very
interesting! I have not tried that.The default location for that file will
be in the directory in which Jmol.jar was started. It would not normally
access anything in its own Jar file.

However, there are two possibilities here.

Option 1) Let jmol open up the  jar file (it is just a zip file) and get
the spt from there. The  pipe symbol is used to indicate you want a file
from a ZIP file:

$ background image "Jmol.jar|org/openscience/jmol/app/images/atomProps.gif"


Option 2) Read the contents of the resource into a string using your
application and getClass().getResource().getContent()  and then pass that
string to Jmol using jmol.script() directly. You can do this straight from
your callback notification.

Bob


​
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to