In Java Swing, there is JTree.linestyle property that enables/disables lines connecting the parent nodes in a tree to their children. Is there something similar in JavaFX 2? In all of the TreeView examples I've looked at for JavaFX, I haven't seen this. I also didn't see a CSS property to set.
相关问题
- How to properly use Weld in JavaFX 2 application?
- JavaFX, MediaPlayer - volume trouble! Why the volu
- JavaFX 2 ComboBox setValue() does not set CB text
- How to enable HTML5 local storage in javafx WebVie
- JavaFX VBox and HBox layouts
相关文章
- How to change the color of pane in javafx?
- TableView has more columns than specified
- How to merge cells in JavaFX Scene builder?
- JavaFX: Tested/confirmed hardware (GPU) accelerati
- How to work with canvas and text in javafx
- How to center/wrap/truncate Text to fit within Rec
- JavaFX TableView is not updating
- RMI JavaFX 2 - NotSerializableException error
JavaFX 2.2 does not have such a setting out of the box. A feature request could be filed in the JavaFX issue tracker.
You may be able to achieve the line connection effect by creating custom
TreeCell
andTreeItem
nodes and, on those, setting the treeCell.disclosureNodeProperty and the TreeItem graphicProperty as appropriate based upon the various settable event handlers for the TreeItem.