Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8098175

TreeItem on "CheckBoxTreeView" should not show CheckBox

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 8
    • javafx
    • Java8 u20

      On the following code, I would like to show a CheckBox only on the leaf node.
      But actually, the root node (TreeItem) has a ChockBox too.


      TreeItem rootItem = new TreeItem<>("root");
      CheckBoxTreeItem leafItem = new CheckBoxTreeItem<>("leaf");
      rootItem.getChildren().addAll(leafItem);
      TreeView treeView = new TreeView(rootItem);
      treeView.setCellFactory(CheckBoxTreeCell.forTreeView());

            jgiles Jonathan Giles
            kitsunesajfx kitsunesaki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: