Hi,
I tried to customize the JTreeTable from the sun homepage. My tree consists out of DefaultMutableTreeNodes (to be more exactly, an extension of DefaultMutableTreeNodes).
My goal is to get a working TreeTable that has a tree in the first column and according to this tree checkboxes in the second column.
I searched the forum and found this
thread:
https://coderanch.com/t/338967/GUI/java/JTreeTable-tree-DefaultMutableTreeNodes It helped me a lot and I did the things as mentioned in this thread. My problem is now, that I cannot expand the tree and I don't know why...
The code in my TreeTableModel impl class looks like that:
And I create the JTreeTable like this:
For explanation: MyTreeNode's userobject can either be a normal
String or an Object of type of MyOwnClass (as you see above). The nodes which represents just a String are always the parent, and the nodes which represents MyOwnClass are always the children (= leafs). I of course overwrote some methods in MyTreeNode. I know that the implementation of MyTreeNode is correct, because I used it before in a normal tree and there it worked.
I am really hoping that someone can help me
Thanks...
[ January 05, 2006: Message edited by: Clemens Stich ]