Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道它是否可能,以及如何隐藏或不显示 CheckBoxTreeItem 边框?
我的意思是像这张图片这样的矩形。
您可以将该setStyle()方法与该-fx-border-color属性一起使用。
setStyle()
-fx-border-color
treeView.setStyle("-fx-border-color: white white white white;");
(null而不是white似乎也可以)
null
white