I was wondering if anyone might have an idea why this strange behavior occurs when I use the addChild method. I create two objects and add them to a BranchGroup of a SimpleUniverse. The one object is a grouping object of my own construct. The second is a simple object. I want to be able to add multiple objects to this grouping object and be able to move them as a whole so I do the following: If I create the grouping object first then create the simple object, I can then detach the simple object's BranchGroup from the SimpleUniverse's BranchGroup and then add it to the TransformGroup of the grouping object using the addChild method. This works fine. But if I create and add these objects to the Universe in the opposite order (simple object first then grouping object second) I get a nullpointer error when adding the simple object's BranchGroup to the grouping object's TransformGroup. When I print out the grouping object's TransformGroup and the simple object's BranchGroup immediately before calling the addChild method, I get valid IDs for each object regardless of the order they are created in the Universe. I'm sure my permissions are set correctly since it works correctly using the group then simple object order. Is this a bug or am I missing something? *********************************************************************** Eric Reiss - http://www.sigda.acm.org/Eric/ Email: [EMAIL PROTECTED] SIGDA Internet Server Manager - http://www.sigda.acm.org/ Assistant Systems Manager - School of Engineering University of Pittsburgh *********************************************************************** =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
