问题
Is it possible to change the Expand and Collapse Images of a JavaFX 2.2 TreeVIew?
Change this image,

To an image like this (with +/-),

回答1:
Sure, this is possible with a little bit of css. The CSS looks like this:
.tree-cell .tree-disclosure-node .arrow {
-fx-shape: null;
-fx-background-color: null;
-fx-background-image: url("plus-arrow.png");
}
.tree-cell:expanded .tree-disclosure-node .arrow {
-fx-shape: null;
-fx-background-color: null;
-fx-background-image: url("minus-arrow.png");
}
lg Kalasch
来源:https://stackoverflow.com/questions/15521806/change-expand-and-collapse-image-treeview-javafx-2-2