Hi, Dave
Here has a method and you can try
objRoot.addChild(child1);
int indexChild1;
indexChild1 = objRoot.numChildren() - 1;
objRoot.removeChild(indexChild1);
rgds
Jiang Minhua
----- Original Message -----
From: Dave Frost <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 1999 7:38 PM
Subject: [JAVA3D] getAll children ? which children ?
> Hi everyone,
>
> I a trying to remove a node at run time. The method getAllChildren()
> returns an enumeration of nodes, right ? and removeChild( int ) removes
> the specified node, well how do i calculate which node is represented by
> a specific number i.e. how do i count up the values of the node, which
> one is 1,2,3,4,5,.... etc.
>
> Thanks for the help
>
> Dave Frost
>
>
===========================================================================
> 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".
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.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".