|
Hi,
The way I do it is to set the preferredsize of the
TreeCellRenderer for each cell it is rendering.
e.g. in my application I have to show a node with
text and arbitrary amount of detail below it.
So, I have a JPanel with a JLabel and a JTextArea
in a BorderLayout as my TreeCellRenderer.
For each getTreeCellRendererComponent, I set the
data and call doLayout and return the JPanel.
The JTree takes care of the rest.
Hope this helps.
Best Regards
Sachin
|
- Set different node's height in JTree a johnston
- Re: Set different node's height in JTree Sachin Hejip
- Re: Set different node's height in JTree a johnston
- Drag-n-Drop Dennis
