All,
Spent last two days trying to dynamically set different row heights for a JTree but zero success. Below is an image of what I'm trying to achieve... Here's what I have tried:
(1) using setRowHeight(0) so the node would query it's current cell renderer
(2) setting the PreferredSize(Dimension d) of the component returned from the jtree's cell renderer.
(3) changing the rowheight in the renderer itself which I understand now shouldn't be done.
I don't see how I set a different cell renderer on the same column e.g. column A below where maybe i could hardcode a different row height.
Anyone got any tips or tricks or better still a working example, my head is fried and I seem to have exhausted all other resources.. this should be possible,right?
(1)
and(2)
works fine for me usingJDK1.8.0_51
onWindows 10
: