Questions tagged [treetableview]

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

150 questions
2
votes
1 answer

JavaFx: TreeTableView weird NullpointerException

I have noticed a weird NPE in the TreeTableView It happens if you doubleClick in the table where there is no row present. Ill attach a screenshot to show what I mean exactly. I comes purely from JavaFx it has nothing to do with my code. I also did a…
Sunflame
  • 2,993
  • 4
  • 24
  • 48
2
votes
0 answers

Drag & Drop in TreeTableView

I have a TreeTableView control and I want to drag their items to reorder them in a personalized way and I want to show a line that indicates where they are going to go while I do it. The problem that I have is that once the line is drawn, it remains…
Zuri
  • 187
  • 1
  • 8
2
votes
1 answer

Seemingly random NullPointerException when updating a TreeTableView

I just added filtering to my TreeTableView and a bug started appearing that seems to be random (probably is not random). I can reproduce it with spamming the filter textField to update the TreeTableView until it jams. I get the following stack…
Ram
  • 115
  • 10
2
votes
1 answer

Change selection color of a JavaFX TreeTableView

I'm having a little trouble regarding FX, CSS and the TreeTableView. I have cells containing blue Hyperlinks. Now if the cell is selected, the background becomes blue and thus the link is practically invisible. I'd now like to change the background…
Rosso
  • 428
  • 7
  • 17
2
votes
1 answer

JavaFx dynamic column values

I have a TreeTableView and I want to add columns dynamically. In MyCustomRow i have a Map with the values in the row. I'm adding the new column this way: private TreeTableColumn
Sunflame
  • 2,993
  • 4
  • 24
  • 48
2
votes
1 answer

JavaFX: Align treetableview expand arrow to the row content

Below is my TreeTableView. As you can see, the arrows for expanding collapsing the level are not in line with the data. I want to make them in one line. But don't know how to do that. I tried the following ways in the css but none of it…
Harshita Sethi
  • 2,035
  • 3
  • 24
  • 46
2
votes
2 answers

TreeTableView disable any cell in parent row

How can I disable any cell editable in parent row in treetableview? Please look the pictures and check the sample code. Shortly I want to disable row editable if row is expandable (root row or sub root row) this picture is correct but this is not…
sancho
  • 598
  • 2
  • 8
  • 22
2
votes
1 answer

JavaFX TreeTableView custom TreeCell with controls

I'm new to JavaFX 8 and tried to implement a TreeTableView with some jfxtras controls in my second and third column. Therefore I set up the cell factories of those columns with custom TreeCells e.g. like this: col3.setCellFactory(new…
clic
  • 365
  • 1
  • 13
2
votes
1 answer

incompatible return type ReadOnlyLongWrapper in lambda expression

I'm trying to create a TreeTableView and trying to set sell value factory to @FXML private TreeTableColumn folderId; here: folderId.setCellValueFactory((TreeTableColumn.CellDataFeatures param) -> …
Nikitin Mikhail
  • 2,983
  • 9
  • 42
  • 67
2
votes
1 answer

JavaFX: Add CheckBoxTreeItem in TreeTable?

I am experimenting with JavaFX and I am trying to add a check box Item in tree table, but it looks like it supports only simple tree item. My Code is modified version of Oracle's TreeTableView Example: public class TreeTableViewSample extends…
DeepSidhu1313
  • 805
  • 15
  • 31
2
votes
2 answers

Make treetableview uncollapseable, in JavaFX

Is there a way to make a treetableview Un-collapsable, so that the treetable opens in expanded mode setExpanded(true) and can not be collapsed again?
Iman
  • 769
  • 1
  • 13
  • 51
2
votes
0 answers

Tab to next row in TreeTableView after last editable cell in one row

I'm working with a JavaFx TreeTableView in Java. Most of my cells are editable, but some are not. When editing a cell, pressing tab jumps to the next editable cell - as expected, but when at the end of a row, it just exits editing. Is there a way to…
2
votes
1 answer

Java Fx TreeTableView different Context Menu items

I'm using TreeTableView , and I want to change the menu items that are associated to the context menu according to the data inside the selected row. Suppose that I'm having a table with a structure like: visitors visitor 1 visitor 2 visitor…
Khafaga
  • 1,537
  • 4
  • 15
  • 24
2
votes
1 answer

javafx treetableview column size

I'm developing a java fx application and I'm using a TreeTableView, and when I insert some data inside it , it looks like this : Is there a way , so I can make the columns stretch in order to view all the content inside the cell?
Khafaga
  • 1,537
  • 4
  • 15
  • 24
2
votes
1 answer

JavaFX 8 TreeTableColumn setText ClassCastException

My situation is: I have a TreeTableView that has a TreeTableColumn. The Columns head text will be changed on runtime. When I change the text through setText or textProperty().bind(...) before I show the stage, all works as expectet. But if i change…
Kalaschni
  • 2,301
  • 24
  • 37
1
2
3
9 10