Miguel wrote:
> The initialization is only going to happen when the class loads.
>
> The class is only going to get loaded once.
>
> The first thread to reference the class will load the class. The second
> thread will not reload the class because the class was already loaded. So
> the static variables will not get re-initialized and overwritten.
>
OK, I think I get that. Then the problem was just that the first
applet created the matrix, and the second changed its contents WHILE
the first one was executing. That certainly explains the result for
two applets on the same page -- one isosurface being offset in one
applet just because a second applet is right behind it creating its
own isosurface with a different matrix.
So if you have an array, say:
final static Point3f[] myArray = new Point3f[10];
the first applet hitting that sets all the points to {0,0,0}, but the
next one will not initialize, and so it will find whatever values were
left there from the previous applet?
I guess that makes sense. Oh so tricky, though.
What sort of problems should we expect for two different pages pulling
up two different versions of Jmol?
Bob
--
Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr
"Imagination is more important than knowledge." - Albert Einstein
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers