JTree cell width
800349Dec 26 2009 — edited Dec 27 2009Hiya
I'm trying to make my jtree's cell width be equal to the width of the entire JTree it is in so that when selected, a highlight bar stretches across the entire jtree rather than just around the text of that node?
I've created a DefaultTreeCellRenderer and attached it to the jtree, and tried overriding the getWidth, getPreferredSize, getBounds, but I can't get it working.
How can I do this?
Thanks