I'm trying to use a JTreeTable with my own model, I have hand-jammed children and root nodes that are a subclass of DefaultMutableTreeNode.
It seems that number of children is correctly returned for getChildCount, and isLeaf return true of false correctly, but the little "plus sign" icons are not showing up to allow nodes to open/close.
Does anyone have any ideas of what method I might not be overriding to get this to work properly? I've tried the examples on the web site above, and they work. When I change to 'my data' and subclass of defaultmutabletreenode, I get this weird behaviour.
posted 5 years ago
I found the solution. I had not defined one of the columns to override getColumnClass to return TreeTableModel.class in the column I wanted the tree to appear.