This gives me a NullPointerException... (as like as "replace")

I found a solution by adding/removing to/from an additional BranchGroup
between the ContentBranches and the Locale. (It took a long time...)

Thanks a lot!
Netti

> Hi,
>
> Try locale1.removeBranchGraph(contentBranch1) instead of
> contentBranch1.detach()
>
> Cheers,
>
> Florin
>
> -----Urspr�ngliche Nachricht-----
> Von: Anett Berger [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 26. September 2002 13:31
> An: [EMAIL PROTECTED]
> Betreff: [JAVA3D] change ContentBranches
>
>
> Hi,
>
> I'd like to replace a complete ContentBranch in a scene. (The user is
> to
> choose.)
>
> Pressing a button the new ContentBranch should appear and the old one
> disapppear.
>
> I did the following:
>
> if (e.getSource() == button1) {
> contentBranch1.detach(); //(capability is set)
> locale1.addBranchGraph(contentBranch2);
> }
>
> The new one is there and works but the old one doesn't disappear.
>
> Could anybody give me a hint? Or is this a complete wrong way?
>
> Thanks
> Netti
>


--
Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX w�hlen -
und tolle Preise absahnen! http://www.onlinestar.de

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