Questions about the usage of the JavaFx TreeTableView should use this tag.
Questions tagged [treetableview]
150 questions
2
votes
1 answer
Why JavaFX TreeTableView edit-mode gets undesirably canceled?
Following workflow is intended: User clicks a Button -> At the selected TreeItem a new TreeItem should be created. The selected TreeItem should get expanded and the new TreeItem should be displayed and entering in editing-mode, as displayed in the…

crusam
- 6,140
- 6
- 40
- 68
2
votes
1 answer
javafx treetableview cell value not getting updated
Event after updating the data model javafx treetableview cell value not getting updated.
I am using the sample code here @ http://docs.oracle.com/javase/8/javafx/user-interface-tutorial/tree-table-view.htm
(Example 15-2)
On click of button i m…

HemantS
- 208
- 3
- 11
1
vote
1 answer
javafx TreeTableView string array columns
All existing answers were using a class object to display multiple columns. Do I have to use a class? Can I just use a string array like C#'s ListViewItem? If I can, how?
For example, display "hello" in the first column and "world" in the second…

Damn Vegetables
- 11,484
- 13
- 80
- 135
1
vote
0 answers
JavaFX : TreeTableView with CheckComboBoxCell not updating the cell properly
I have the following code to create a TreeTableView with a CheckComboBox in one column.
public class TreeTableViewSample extends Application {
List employees = Arrays.asList(
new Employee("Ethan Williams", ""),
…

user3164187
- 1,382
- 3
- 19
- 50
1
vote
3 answers
TreeView/TreeTableView - KeyEvent F2 causes JavaFX internal NPE
Having put a "standard" editor on column 0 of a TreeTableView by doing this:
treeTableView.columns.get(0).setCellFactory( TextFieldTreeTableCell.forTreeTableColumn());
... it's nice to find that a couple of things start an edit of a TreeItem: one…

mike rodent
- 14,126
- 11
- 103
- 157
1
vote
1 answer
Need to customize combobox in javafx with xml data
I need to display the javafx tree table with values read from XML file. I am able to do it as shown below,
I am able to add color to the combo box as shown
But when I collapse the tree the color which is set still remains the same, as shown…

Sathya Nirosha.R
- 11
- 2
1
vote
1 answer
JavaFX TreeTableView - Prevent selection of certain TreeItems
I have looked at a couple of questions here, but I can't seem to find anything related to disabling selection of rows for TreeTableViews in particular in JavaFX.
The closest related questions I have come across are all related to TreeViews:
How to…

wcmatthysen
- 445
- 4
- 19
1
vote
0 answers
TreeTableView row dynamic style formatting fail
With the help of many here I figured out a way to dynamically change the style of certain rows with a rowFactory. Maybe I when too far and thought it would be cool if the root item of expanded rows not only had different text and background colour…

Ram
- 115
- 10
1
vote
3 answers
TreeTableView : setting a row not editable
I want to have control over the styling of some rows of a TreeTableView based on the level in the tree. I used setRowFactory and apply a styling if this row is part of the first level children of the root of the Table. The styling works fine, but I…

Ram
- 115
- 10
1
vote
1 answer
Populate treetableview from database using FXCollections.observableArrayList()
I have an expense report query that produces field totals for each day (designated as column “root” as a 1) and dropdown detail for that day (designated as column “root” as a 2). I can directly fill a table view no problem and can directly fill a…

Steve Scan
- 59
- 7
1
vote
0 answers
JavaFX TreeTableView set custom node in row cell
I want to create a treetableview which can show for every tree item a sub tree with a row which contains custom nodes (in this case a button).
In the end i want to make it look like that.
In order to achieve that i probably need a custom row…

GitGud
- 11
- 4
1
vote
1 answer
Setting a style class only for first-level nodes in JavaFX treeTableView
I have a restaurant menu with dishes and categories implemented as a treeTableView in javaFX.
I want to make the the category rows appear different with CSS but I just can't find a way to filter them out and apply a class. Moving the images a bit…

Dzeri96
- 196
- 2
- 13
1
vote
1 answer
How to center the text in TreeTableView Column?
I've a JFXTreeTableView and i want to center the text of the data for each column.
there is one of my creating columns code :
JFXTreeTableColumn DrinkColumn = new JFXTreeTableColumn<>("Drink");
DrinkColumn.setPrefWidth(100);
…
user9559135
1
vote
1 answer
Sort javaFX Tree table view items
I'm having troubles sorting my JFXTreeTableView (from Jfoenix).
I have created an object named ScanModel which extends Jfoenix's RecursiveTreeObject.
One of the many properties I'm having there is:
private IntegerProperty id;
Here are…

nafarkash
- 359
- 6
- 24
1
vote
2 answers
Removing a JavaFX TreeItem Sometimes Changes TreeTableView Selection
I have a JavaFX TreeTableView. Under its root, there is a set of TreeItem (nodes) and each node may have its own child TreeItem (sub-nodes). Since there is no information to show for any nodes without sub-nodes, I want to remove those. But…

Guangliang
- 228
- 2
- 10