I want to have many JTrees displayed one below another vertically.
I decided to use JList as vertical container for JTree.
The problem is after I added JTree to DefaultListModel and created JList with that model
I have toString of JTree displayed as item in JList instead of JTree itself . This is displayed :
How to tell JList to display JTree component instead of text of JTree.toString method?
Unfortunately the tree's leaves are not displayed but hidden by background color of whole Box.
I provided image of this.
The root of tree is displayed on white background but text of leaves is hidden by gray background of Box.
How to tell JTree to display itself including text of leaves?
How to add plus icon to collapsed nodes?
UNFORTUNATELY coderanch does not allow to post image into post
but forces somebody to download it.
This is nearly impossible to believe that somebody will ever download my image.
Without image nothing is clear about problem.
Joined: Jun 19, 2012
- notice not attack, nor intention
- not has nothing to do, something with CodeRanch or SO,