JTree and JList: data reference
Posted on 1997-11-15
I want to put something together like the Windows Explorer.
A JTree on the left showing a hierarchy, a JList presenting
the contents of a selected node.
How do I get references to actual data into a JTree and
a JList? It is quite easy to fill both with strings.
But how do I get a reference to the underlying data of
each node? Is it possible to store a reference together
with the string in a node?
I want double click a node and then a window with
the respective data comes up! Consequently I will
have to supply the MouseListener with some data!