Questions tagged [treetableview]

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

150 questions
1
vote
0 answers

Find children and sub children of tree in JavaFx

This code gives me only first level in hierarchy of a tree. How can I check a node to the point the node is leaf and add all those children as value for parent in a TreeMap for (TreeItem node : root.getChildren()) { …
Iman
  • 769
  • 1
  • 13
  • 51
1
vote
1 answer

creating nested TreeItem in javafx

At the time my TreeItem in TreeTableView looks flat and like this: //////////////////row////////////////////////////// for (Entry entryRow : dc.getSortedfuncAll().entrySet()) { root.getChildren().add(new…
Iman
  • 769
  • 1
  • 13
  • 51
1
vote
1 answer

Merge two columns of a JavaFX TreeTableView

Im trying to implement the Column Span of a TreeTableView Shown in the Cell Section of the TreeTableView wiki. But theres no documentation in how to do so. Can anyone help me with this one? Wiki:…
leomcpugo
  • 35
  • 8
1
vote
0 answers

Javafx TreeTableView - efficient way of updating single row from huge collection

What's the best way to update a single row at a time from a treetableview with huge collection of rows? Currently i am storing references of treeitems in a map and accessing the required row by getting it from the map.
HemantS
  • 208
  • 3
  • 11
1
vote
1 answer

Javafx TreeTableView enable Show/Hide columns button

https://wiki.openjdk.java.net/display/OpenJFX/TreeTableView+User+Experience+Documentation Can someone help me enable Show/Hide button for columns in TreeTableView? In the above documentation it is showing the screenshot for the same but I am not…
HemantS
  • 208
  • 3
  • 11
0
votes
1 answer

JavaFx treetableview setStyle for rows with NO children

In TreeTableView I need to find and setStyle rows with NO children. In below code example, problematic code is in method: markRows. public class Controller { public TreeTableView fuses_ttv; private ArrayList
pawchi
  • 77
  • 7
0
votes
0 answers

TreeTableView but in columns?

I am new to javafx and i have been working with TreetableView. I was wonthering if there is something similar but that I could do the samething with columns that you can do with rows. I mean something that you could squash and expand similarly as…
0
votes
1 answer

JavaFX TreeTableView doesn't update column on repeated expand

I have a TreeTableView with two columns. The first column shows a label and the second column shows an action text with a custom CellFactory. The first time I expand the node, the action text is set correctly. But when I repeat to expand the Node,…
tinyman
  • 1
  • 1
0
votes
1 answer

Speed up adding data to JavaFX TreeTableView

I'm using JavaFX/OpenJFX for GUI in Java, and need to populate TreeTableView with millions of items. However, it currently takes a very long time to do it. Is there a way to speed it up? Here is my code: List> rootChildren…
aleksmath
  • 3
  • 1
  • 3
0
votes
0 answers

Binding an ObservableList to TreeTableView items

I'm trying to wrap my head around TreeTableViews and I'm doing a pretty bad job at it. So I have a background task that gets the data I want to use in the TreeTableView, I don't know how I can populate it, as in to bind the TreeTableView's item's…
phsu1
  • 29
  • 5
0
votes
0 answers

TreeTableView how to create a specific cell based on the item

I have to create my own implementation of CellFactory for TreeTableView. My cell can contain two types of values - String and Enums. Based on this type I want to have another implementation of displaying this item. The easy way is verifying the type…
Adrian Klimczak
  • 133
  • 1
  • 10
0
votes
0 answers

JavaFx TreeTableView with Checkboxes, where to put listener?

I am building up a playlist manager. Which works well but has deep flaws in the design, and thus, is difficult to UPGRADE / MAINTAIN. In that context I now have a javafx TreeTableView having a column as Checkbox. To get a visual idea, here is what…
Daric
  • 83
  • 9
0
votes
1 answer

OpenJFX TreeTableView rendering issue

I was hoping there are other developers have similar issue that can share how to resolve this issue. I'm in the midst of using OpenJFX in one of my pet project. The project was tested on Oracle JDK 1.8 with JFX package included. When run on the…
Chris Liaw
  • 67
  • 2
  • 9
0
votes
1 answer

How to provide Editing of a currency (LongProperty) within a JavaFX editable TreeTableView?

How do I bind a BO currency (LongProperty) to a Javafx editable TreeTableView? Using Databinding, TextFormatter and other javaFX Stuff. For a normal TextField I found this solution: Editiing Currency with a TextField Bo: import…
Jonny
  • 78
  • 1
  • 11
0
votes
1 answer

javafx treeTableView mark children rows red

I have problem with marking color of treeTableView row. Marking "first level" row is no problem and the code functions. Under updateItem method -> item, I can access first row fruit properties. But I dont know how to access deeper in "second level"…
pawchi
  • 77
  • 7