Reputation: 54584
I need to have several, separately editable "cells" for a tree node. A TreeTable is not suitable, as I have several node types which have different record structures.
Is there already a (preferably free) component for this? If not, do you have some implementation hints for me? Especially it would be important that I can assign different "CellRenderers" and "CellEditors" to different cells, and to be able to resize a certain cell for all nodes of a certain node type.
Upvotes: 0
Views: 250
Reputation: 205785
You might look into org.netbeans.swing.outline.Outline
, mentioned here.
Upvotes: 0
Reputation: 22292
From what I understand, what you want is not a tree in a table, but a table in a tree. Am I correct ?
If so, you can take a look at this old example in comp.lang.java.gui, which achieves what you want in the most typical fashion : by using as JTree renderer a Jtable painter
Upvotes: 1