Check Box Node Tree , Custom Renderer
-
19-04-2021 - |
Frage
I have a custom checkbox node tree . The structure is like this .
You can notice that the subtree is drawn from the check box node tree.
And what i need is ,
The sub tree must be drawn under the folder icon and not the check box.
Please guide me on this regard .
Lösung
You are using a custom TreeCellRenderer
? Just indent it, i.e. add padding to the left which has the width of the folder icon. If you are not using a custom TreeCellRenderer
: That is the way to go.
Andere Tipps
Add One
as a leaf (like Two
and Three
). The tree does not make sense otherwise.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow