Hi Anett,
generally BranchGroup.detach() takes quite some time, compared to other
activities. But it should disappear after some time. You can also wait till
the contentBranchGroup.isAlive() returs false. Also try
simpleUniv.removeAllLocales() and try to add a new Locale with the new
contentBG. This anyway will help you in reducing memory/threads problems.
thanks
anirban
----- Original Message -----
From: "Anett Berger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 5:01 PM
Subject: [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".
>
===========================================================================
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".