>
> Alex,
>
> Interesting problem. Can you send me some code to take a look at it? Perhaps one of
>the Node derivered classes in J3D has a synchronized version of hashCode()...?
>
> To achieve what you are trying to do I would store the what-to-do-method in the
>"user data" for the node - that way, given a node you do not have to do any hash
>table lookups, but can jump straight to the method. setUserData(...) etc.
>
> Sincerely,
>
> Daniel Selman
>
> [EMAIL PROTECTED]
> http://www.tornadolabs.com
Hi,
Indeed a weird problem eh ?, it's even more weird, this does work :
Set s = pickableModifyHash.keySet();
Iterator i = s.iterator();
try {
while(true)
{
Node n = (Node)i.next();
...
}
} catch(Exception e) {}
here i'm using the fact that iterator.next() gives an exception if there
is no next object... It's an UGLY hack, but it seems to work...
I've not used the userData construction, because we wanted to make it possible
to have seperate behaviors that do different tricks to the same objects.
The problem with sending you some code is that it is part of a rather
lareg application and i'd have to send you alot of code to actually
be able to run it...
If you're interested i'll send it to you...
Thanks for the reply,
Alex...
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/