S
Spendius
Hi,
Say we have the following JTree:
+ root
+-- obj1
| |-- obj11
| +-- obj12
+-- obj2
| +-- obj21
+-- obj3
|-- obj31
+-- obj32
If I click on 'obj2' I'd like to get the value 2 because
'obj2' is the 2nd node to appear in this level, if I
click on 'obj3' I'd like to get 3 (i.e. I'd like to the
index of this object but with a count in relationship with
the objects of *the same level* only).
Has someone an idea of how I could perform this ?
Thanks a lot !
Regards,
Spendius
Say we have the following JTree:
+ root
+-- obj1
| |-- obj11
| +-- obj12
+-- obj2
| +-- obj21
+-- obj3
|-- obj31
+-- obj32
If I click on 'obj2' I'd like to get the value 2 because
'obj2' is the 2nd node to appear in this level, if I
click on 'obj3' I'd like to get 3 (i.e. I'd like to the
index of this object but with a count in relationship with
the objects of *the same level* only).
Has someone an idea of how I could perform this ?
Thanks a lot !
Regards,
Spendius