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:
this how looks when 1 item added root:
thanks suggestions :)
i think can not prevent empty treecell
s 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
Post a Comment