Questions tagged [treetableview]

Questions about the usage of the JavaFx TreeTableView should use this tag.

150 questions
17
votes
1 answer

Can JavaFX's ListChangeListener.Change.getRemoved() return non-contiguous items?

Problem When items are removed from an ObservableList, a change event is fired where getFrom() gives the location of the removal and getRemoved() gives a list of items that were removed. The documentation says: The getRemoved() method returns a…
John Kugelman
  • 349,597
  • 67
  • 533
  • 578
15
votes
7 answers

How to enable commit on focusLost for TableView/TreeTableView?

Is there any simple approach to let the TreeTableView (or TableView) try to commit values on focus lost? Unfortunatly I didn't succed with any default-implementations of javafx TableCellFactories, which is why I tried my own TreeTableCell…
crusam
  • 6,140
  • 6
  • 40
  • 68
8
votes
1 answer

JavaFX8 TreeTableView multiple root items

TreeItem root = new TreeItem(playlist); treeTblViewFiles.setRoot(root); treeTblViewFiles.setShowRoot(true); The code above sets one root item, but I need to have several so called root items with expandable list of child…
Mike Spike
  • 389
  • 8
  • 20
6
votes
2 answers

How to modify click-behavior of TreeTableView

I'd like to modify the click-behavior of the TreeTableView, but honestly I am not sure what the intended way of doing this has to look like or if it is even ment to be changed in any way. Most users complained the current behavior wouldn`t be…
crusam
  • 6,140
  • 6
  • 40
  • 68
5
votes
1 answer

TreeTableColumn.visible : A bound value cannot be set

I make a simple JavaFX application. In this application there is a treetable with 2 columns and a check box. If check box is selected column 2 will be visible, otherwise not visible. To do this I bound tree table column visible property to checkbox…
sancho
  • 598
  • 2
  • 8
  • 22
5
votes
1 answer

JavaFX TreeTableView leaves icons behind when collapsing

I have a TreeTableView where every node has an icon. Everything works perfectly when I expand the tree, but when I collapse the tree, the icons of the no longer visible items are left behind. The rows and the text are removed, but the icons remain…
Sarek
  • 250
  • 4
  • 9
5
votes
1 answer

Centering CheckBox on JavaFX TreeTableColumn

thank you for reading my question. I'm working with a TreeTableView, and managed to display a Boolean value into one of the columns, by following the results proposed on this answer. It works perfectly, but when applied, the checkbox has a TOP_LEFT…
user3498635
5
votes
2 answers

How to implement filtering for treetableview

Can anyone please suggest me how to implement filtering for a TreeTableView component? I am using jdk 1.8.20
HemantS
  • 208
  • 3
  • 11
4
votes
1 answer

JavaFX TreeTableView Css for unfocused selected line

I have a problem with CSS on TreeTableView. For TableView when I define CSS like this : .table-row-cell:selected{ -fx-background-color: #f1734f; -fx-background-insets: 0; -fx-background-radius: 1; -fx-table-cell-border-color: white; …
4
votes
0 answers

TreeTableView content disappears while adding rows dynamically

I have this small sample code: Main class: package sample; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; import java.io.IOException; public…
4
votes
1 answer

Tree Table OData Binding, SAPUI5

I am trying to create a tree table from an EntitySet (say E1), in my FIORI App. I have my controller and extended View and the data is properly bound between the two. I am referring to the Official SAP Demo Explored Kit for the tree table code.…
guitar_geek
  • 498
  • 2
  • 9
  • 19
3
votes
1 answer

JavaFX TreeTableView exception when sorting with multiple rows selected

I'm learning JavaFX right now and I can't seem to get one thing right. Basically what I'm trying to do is a TreeTableView with multiple selection, which works fine until I try to sort the list. Here's the code (Example 15-1 TreeTableView with One…
3
votes
0 answers

How to filter a column data in treetableview using javafx

I have a tree table with three level hierarchy. I'm getting this hierarchy by sending data in three different Observable list. int pnode = 0; if (parentData != null && parentData.size() > 0) { for (ProjectPlan parent :…
Harshita Sethi
  • 2,035
  • 3
  • 24
  • 46
3
votes
1 answer

Javafx exception when clicking TreeTableCell after repopulating TreeTableView

I am currently getting an error that I do not understand. The exception that is thrown points to nothing in my code, yet it is only thrown after I repopulate a TreeTableView by clearing the root item's children and adding a new set och children to…
3
votes
2 answers

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.
Mike Spike
  • 389
  • 8
  • 20
1
2 3
9 10