Rob,

Try:
  .setCapability(Group.ALLOW_CHILDREN_EXTEND);
  .setCapability(Group.ALLOW_CHILDREN_WRITE);

- John Wright
Starfire Research


Rob Elsam wrote:
>
> I would like to add a branchGroup to another at run
> time on the push of a button:
> contentBranch.addChild(newChild);
> However doing this causes a restrictedAccessException.
>
> I assume you have to set the capability of the
> BranchGroup in order to enable it to have a child
> added at run time.  However I can't seem to find such
> a capability bit.  Does a capability bit exist that
> allows a branchGroup to have a child added to it at
> run time?
>
> Thanks in advance
>
> Rob Elsam
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> ===========================================================================
> 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".

===========================================================================
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".

Reply via email to