I have a TransformGroup node that is a child of a BranchGroup.
BranchGroup bGroup = new BranchGroup();
TransformGroup tGroup = new TransformGroup(); tGroup.setCapability(TransformGroup.ENABLE_PICK_REPORTING); tGroup.setCapability(BranchGroup.ALLOW_PICKABLE_WRITE); bGoup.addChild(tGroup);
While tGroup is alive(also bGroup), I want to change its pickability, tGroup.setPickable(false);
Then this exception is given:
Exception occurred during Behavior execution:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:508)
at java.util.ArrayList.get(ArrayList.java:320)
at javax.media.j3d.GroupRetained.updatePickable(GroupRetained.java:1284)
at javax.media.j3d.GroupRetained.updatePickable(GroupRetained.java:1286)
at javax.media.j3d.GroupRetained.updatePickable(GroupRetained.java:1286)
at javax.media.j3d.NodeRetained.setPickable(NodeRetained.java:513)
at javax.media.j3d.Node.setPickable(Node.java:704)
at Sunar.Sekil.arabirimleriGoster(Sekil.java:332)
at Sunar.SekilA.pressedMouse(SekilA.java:44)
at Sunar.SekilPickBehavior.fareTiklandi(SekilPickBehavior.java:158)
at Sunar.MenuDavranisi.processStimulus(MenuDavranisi.java:100)
at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:172)
at javax.media.j3d.J3dThread.run(J3dThread.java:250)Why is it given?Does anyone know the answer?
Thanks Nagehan Pala
_________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
=========================================================================== 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".
