JTree cell width question
843806Jan 8 2009 — edited Jan 23 2009 I'm trying to write a custom TreeCellRenderer that is sensitive to the visible width available to display the value. I can't use tree.getRowBounds(row) from within getTreeCellRendererComponent, because getRowBounds eventually calls getTreeCellRendererComponent again, resulting in stack overflow.
So how can I get hold of the visible row width (after depth-level indenting) from within getTreeCellRendererComponent?