There is just one Jmol object, but you can have several applets. Maybe what you
describe is due to trying no create several Jmol objects ?
Paul
Le 28 sept. 2012 à 16:52, Andreas Truszkowski a écrit :
> Hi Bob,
>
> it seams that the first instance is updated by the executed scripts of the
> second instance. E.g. lightning settings like set zShadePower, set
> ambientPercent,...
>
> Kind regards,
> Andreas
>
> Am 28.09.2012 16:31, schrieb Robert Hanson:
>>
>>
>> On Fri, Sep 28, 2012 at 8:39 AM, Andreas Truszkowski <[email protected]>
>> wrote:
>> Hi,
>>
>> instanciating several JmolViewer instances leads in overwritin of each
>> other. Am I right that Jmol is not thread safe?
>>
>> No. We do all sorts of things with multiple viewers. There are no static
>> objects, only static constants.
>>
>>
>> What I am going to do:
>> I will use one instance of the JmolViewer for displaying structures
>> whereby another instance shall render images in a background thread.
>> The code forinstantiation is
>> viewer = JmolViewer.allocateViewer((panel or null), new
>> SmarterJmolAdapter(),
>> null, null, null, null, null);
>>
>> Is it possible to get it work in a single virtual machine or have I to
>> run a second JVM to get this work?
>>
>>
>> just allocate another viewer, and you should be fine. What exact problems
>> are you seeing?
>>
>> Bob Hanson
>>
>> Kind regards,
>> Andreas
>>
>> ------------------------------------------------------------------------------
>> Got visibility?
>> Most devs has no idea what their production app looks like.
>> Find out how fast your code is with AppDynamics Lite.
>> http://ad.doubleclick.net/clk;262219671;13503038;y?
>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>>
>> --
>> Robert M. Hanson
>> Larson-Anderson Professor of Chemistry
>> Chair, Chemistry Department
>> St. Olaf College
>> Northfield, MN
>> http://www.stolaf.edu/people/hansonr
>>
>>
>> If nature does not answer first what we want,
>> it is better to take what answer we get.
>>
>> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Got visibility?
>> Most devs has no idea what their production app looks like.
>> Find out how fast your code is with AppDynamics Lite.
>> http://ad.doubleclick.net/clk;262219671;13503038;y?
>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>>
>>
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users