Hi,
I'd like to be able to add data (a string, number or even arbitrary variable type) to each tree node.
As an example: imagine a notepad with a tree structure (there's a lot of those out there, just an example).
You would be able to navigate through the tree to your notes and each node could contain a note(text string).
Currently, I can only think of awkward workarounds (e.g., simulating a tree with the same structure in an ArrayList).
Just using the Node.Text member is not the correct idea: In the tree view I would only want to show titles of the notes/nodes.
Jens
I'd like to be able to add data (a string, number or even arbitrary variable type) to each tree node.
As an example: imagine a notepad with a tree structure (there's a lot of those out there, just an example).
You would be able to navigate through the tree to your notes and each node could contain a note(text string).
Currently, I can only think of awkward workarounds (e.g., simulating a tree with the same structure in an ArrayList).
Just using the Node.Text member is not the correct idea: In the tree view I would only want to show titles of the notes/nodes.
Jens
Last edited: