Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (723)
Games in Android Showcase (216)
games submitted by our members
Games in WIP (790)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Branchgroup RemoveChild  (Read 1704 times)
0 Members and 1 Guest are viewing this topic.
Offline Raicho

Innocent Bystander

Java games rock!

« Posted 2004-10-28 21:13:50 »

Hello, New in here  Grin

I'm getting this exception every time I try to remove a child from my Branchgroup objRoot.

Exception occurred during Behavior execution: Group: only a BranchGroup node may be

I simply tell it objRoot.removeChild(blah); It compiles perfectly but then I get that, am I missing something here  :-/

and yes I have done the ALLOW_DETACH

Offline misterX

Junior Devvie

java forever!

« Reply #1 - Posted 2004-10-29 19:37:15 »

it's long ago i touched j3d, but i think the ALLOW_CHILDREN_WRITE bit should be used if you want to remove some child. Whereas ALLOW_DETACH is used to detach oneself. ...I may be wrong.
Offline jjones7947

Senior Newbie

Java games rock!

« Reply #2 - Posted 2005-04-12 12:01:40 »

The capability ALLOW_DETACH is only available in branchgroup.  Drop children only if ALLOW_CHILDREN_WRITE is set. Then set it to null in the branchgroup.
If you want a detachable leaf hang it off a branchgroup which can be detached.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

buddyBro (180 views)
2017-04-05 03:38:00

CopyableCougar4 (613 views)
2017-03-24 15:39:42

theagentd (606 views)
2017-03-24 15:32:08

Rule (658 views)
2017-03-19 12:43:22

Rule (631 views)
2017-03-19 12:42:17

Rule (636 views)
2017-03-19 12:36:21

theagentd (645 views)
2017-03-16 05:07:07

theagentd (581 views)
2017-03-15 22:37:06

theagentd (421 views)
2017-03-15 22:32:18

theagentd (350 views)
2017-03-15 22:31:11
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!