I haven't looked into this yet, but that exception is thrown when you try to 
add a tree node to more than one parent. In other words, you can't add a tree 
node to a new tree without first removing it from the old tree.


On Apr 13, 2011, at 2:29 PM, lello wrote:

> Thanks, hopefully now someone else can give a look at the code.
> The problem comes from the code:
> 
>    if (treeNode.getParent() != null) {
>            throw new IllegalArgumentException("treeNode already has a
> parent.");
>        }
> 
> in TreeBranch.java. I can't understand why treeNode must have null parent to
> be updated.
> 
> 
> 
> Duto wrote:
>> 
>>> View this message in context:
>>> http://apache-pivot-users.399431.n3.nabble.com/TreeNodeEditor-issue-tp2815778p2816403.html
>>> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>> 
>> If I can help :)
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 
> --
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/TreeNodeEditor-issue-tp2815778p2817244.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to