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 - CUDA code not processing if block properly -

oracle11g - get root domain from url Oracle sql regex_substr -

xcode - Swift Playground - Files are not readable -