JavaFX8 treeTableView customize collapse root item
问题 How can I customize the collapse appearance of a tree root item? By customizing I mean setting an image and center that little triangle(/new image) inside its cell. Thanks in advance. 回答1: Have a look at the default stylesheet, modena.css, which you can extract from the jfxrt.jar file in jre/lib/ext, or find online. The graphic is defined as a path there: .tree-cell > .tree-disclosure-node, .tree-table-row-cell > .tree-disclosure-node { -fx-padding: 4 6 4 8; -fx-background-color: transparent;