Questions about the usage of the JavaFx TreeTableView should use this tag.
Questions tagged [treetableview]
150 questions
1
vote
0 answers
Why Java FX TreeTableView is leaking memory when TableMenuButton is enabled?
I am experiencing memory leaks with TreeTableView when TableMenu is enabled. Steps to reproduce is simple. I have done some research why it's happening but will leave it to experts here to throw some light.
Run the embedded code with -Xmx 256m to…
user2635530
1
vote
2 answers
JavaFX TreeTableView and ContextMenu
In my project I have a TreeTableView with 5 columns.
I need a different context Menu for every columns.
I have created a ContextMenu in Source Builder for every columns (in the example you see only one for "value" column), but the menù appears only…

SirLancillotto
- 49
- 8
1
vote
0 answers
JavaFX TreeTableView Scrollbar
I want to get the valueProperty of the scrollBar in a TreeTableView in JavaFX.
Both these variants return null:
Node nodeA = treeTableView.lookup(".scroll-bar:vertical");
Node nodeA = treeTableView.lookup(".scroll-bar");
Is there another way to…

GEWLAR
- 11
- 3
1
vote
2 answers
Java FX Dynamically added nested column header is not rendering
When I am adding a nested column dynamically after table is created,nested column headers are NOT rendering. Here is the code reproducing the problem. I am using JDK 1.8.0_121
However If I add the nested columns inline then everything appears as…
user2635530
1
vote
0 answers
How to set rules for default sort in TreeTableView in JavaFX?
I searched on SO, but only found posts regarding sorting TreeView, e.g.,
JavaFX: TableView: Arrow for a column sorted by default and Javafx: Re-sorting a column in a TableView.
Both don't seem to work with my TreeTableView.
Also Oracle's blog post…

Markus Weninger
- 11,931
- 7
- 64
- 137
1
vote
1 answer
TreeView with Two Columns JavaFX 8
I need to have an expandable nestable key value list in JavaFX 8. This is similar in functionality to a TreeTableView, but it is oriented vertically, not horizontally. In other words, the rows would be the headers not the columns for a X-Y inverted…

beepboop
- 57
- 6
1
vote
1 answer
CellValueFactory of a TableColumn using a generic Object type?
Error: Type mismatch: cannot convert from SimpleStringProperty to ObservableValue

Kevin J.
- 87
- 2
- 11
1
vote
1 answer
JavaFX PropertyGrid/Editor
I am trying to write a JavaFx component which is generally called a "property editor" or a "property grid". A property being a name-value pair.
I guess the property sheet is made for this, but I'd like to use a TreeTableView. Mainly because I have…

Rascarcapac
- 123
- 8
1
vote
1 answer
How to visualize UNLIMITED number of rows of data in TreeTableView in JavaFX?
It is said in documentation, that
TreeTableView control is designed to visualize an unlimited number of
rows of data
Unfortunately, I can't see any means for this in the doc.
All elements are stored in TreeItem<> classes and stored in memory.…

Dims
- 47,675
- 117
- 331
- 600
1
vote
0 answers
JavaFX snapshot all content tree/table view
I want to export my tree table view content to .png file. But when I use snapshot but the snapshot is only grabbing the tableview that is visible on the screen. I search all form about this problem but does not find any solution. Can any suggestion.…

sancho
- 598
- 2
- 8
- 22
1
vote
1 answer
JavaFX TreeTable select children when parent is selected and remove selection from parent
I have a TreeTable which has maximum depth of 2, e.g.
fooType
-foo
-foo
If I select fooType I want the program to select automatically all child-items AND deselect the parent item. But when I try this, I always get an…

Rafael Wörner
- 299
- 4
- 15
1
vote
1 answer
JAVAFX 8 TreeTableView: why doesn't this code detect cell losing focus?
I am trying to commit an edit when a JavaFX 8 TreeTableView cell loses focus. I see the question has already been asked, but I would like to understand why my attempt below does not work. More specifically, why a listener to the focusedProperty of…

user118967
- 4,895
- 5
- 33
- 54
1
vote
1 answer
Display TableView> inside TreeView
The design I had in mind is something like this:
There's a TreeView, where E is a wrapper class which implementation could look like this:
public class E {
private int key;
private String value;
public E(int key, String value) {
…

Jonatan Stenbacka
- 1,824
- 2
- 23
- 48
1
vote
1 answer
Add progressbar in TreeTableView (returning Double value to Observable)
I am experimenting with JavaFX and I am trying to add a progress bar in tree table. Is there a way to link the values of salary to progress bar.
My Code is modified version of Oracle's TreeTableView Example:
public class TreeTableViewSample extends…

DeepSidhu1313
- 805
- 15
- 31
1
vote
1 answer
How to get current Position on screen for current selected Cell?
I´d like to open a context-menu, when the user hits a specific key. So I registered a Key EventHandler, and succeded to open a contextmenu, but unfortunatly I am not able to determine the correct position for the contextmenu.
I´d like to open it…

crusam
- 6,140
- 6
- 40
- 68