treeview - Is there a way to not display empty TreeCells in JavaFX? -


my treeview displayed though there no treeitems in it. there way not display treecells before have corresponding treeitem display?

this how looks without items:

only root

this how looks when 1 item added root:

tree 1 item

thanks suggestions :)

i think can not prevent empty treecells being added treeview, if care appearance, can define different style empty cells. empty cells have :empty pseudo class, can use in css:

.tree-cell:empty {     -fx-background-color: transparent; } 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -