java - Root immediate child nodes icons not visible when hiding root -


i have jtree structure shown below. have icons appear whenever node has child nodes, working properly.

my problem need hide root node. when hide root node, icons maintop1 , maintop2 nodes not displayed, though have children. hide root node i'm using "setrootvisible(false)".

also when root node hidden, icons topic1 , topic nodes displayed properly.

anyone knows how display icons maintop1 , maintop2 when root hidden? in advance.

below tree structure:

root     maintop1         topic1             subtopic1             subtopic2     maintop2         topic2             subtopic1 

jtree#setshowsroothandles(boolean newvalue) controls state of handles root elements.

normally, false. try changing true


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -