I want my JTree to display a JTextArea as its node label.
When a node minimizes, only the 1st line of the text string is shown.
When a node expandes, the entire multi-line text string is shown.
It would look this:
Root +----LABEL A line 1
| LABEL A line 2
+----LABEL B Line 1
I try extending javax.swing.tree.DefaultTreeCellRenderer
but I could not get it to display a JTextArea as the node label.
How should I approach this problem ?
Is there any sample source code out there ?
Any commercial UI javabean that can do this ?
I would appreciate any comment or suggestion.