Questions tagged [jxtreetable]

A SwingX component to display hierarchical data in a table, with one column to expand and hide the hierarchy.

A SwingX component to display hierarchical data in a table, with one column to expand and hide the hierarchy.

80 questions
1
vote
2 answers

JTree : Update tree after deleting nodes

I am using my own custom model for JXTree which extends from AbstractTreeTableModel. So the option of reload / removeNodeFromParent is not there. I have tried using TreeModelListener and treeModelListener.treeNodesRemoved(event) call with every…
ayush
  • 14,350
  • 11
  • 53
  • 100
1
vote
0 answers

Insert JTable into JXTreeTable

I have a JXTreeTable where each row should be a name, a JTable with some saved data and a Save JButton. I am having problem displaying properly the tables and buttons. I have overridden the getColumnClass: model = new…
ginou
  • 73
  • 1
  • 6
1
vote
0 answers

HighLighting JXTreeTable row

I wwrote the following code to Highlight a row in JXTreeTable , public void treeExpanded(TreeExpansionEvent te) { final HighlightPredicate myPredicate = new HighlightPredicate() { @Override public boolean…
c.pramod
  • 606
  • 1
  • 8
  • 22
1
vote
0 answers

Column span with most recent JXTreeTable?

I'm trying to have a particular cell span several columns, like this I can't figure it out though, the forum I found that image has some code that doesn't work due to their being random variables I don't know how to get. From some other questions…
TheLQ
  • 14,830
  • 14
  • 69
  • 107
1
vote
0 answers

Example of TreeTableModel and TreeTableNode

Despite my googling I have yet to find an example implementation of a TreeTableModel and a TreeTableNode. I'm trying to implement a JXTreeTable and am not really sure what to do.
Johan Lindskogen
  • 1,246
  • 1
  • 8
  • 25
1
vote
0 answers

Orient a JXTreeTable from bottom to top

is there any way to orient a JXTreeTable from bottom to top? By this I mean that instead of the default layout like so: Node 0 |- Node 0/Column 0 Node 0/Column 1 Node 1 |- Node 1/Column 0 Node 1/Column 1 I want the expanded…
OpenSauce
  • 8,533
  • 1
  • 24
  • 29
1
vote
0 answers

How to select parent and all subnodes in JXTreeTable?

I need to select rows in JXTreeTable for clicked parent and all of its subnodes. In older Swingx with deprecated JXTreeTable it could be done with TreeSelectionListener. I had listener (mTable is deprecated JXTreeTable): …
Dakarth
  • 83
  • 7
1
vote
1 answer

JXTreeTable and BorderHighlighter rendering issue on hierarchical column cells

I'm building a JXTreeTable in which there are only two levels below the hidden root, so I want a border separating the top level nodes. However, when I use the BorderHighlighter, it's not drawing the hierarchical column correctly. Just moving the…
Kevin Rubin
  • 587
  • 8
  • 17
1
vote
2 answers

How to change the color of particular cell in JXTreeTable dynamically

I am using JXTreeTable for making treetable structure now I want to change the color of specific cell dynamically. How can I change the color of cell? I found this code to change the color, but this is not working. Here is…
Pratik
  • 1,531
  • 3
  • 25
  • 57
1
vote
2 answers

JXTreeTable - manipulating checkboxes from an external application - possible?

Using Java code, I am tying to manipulate another, external Java swing application, for which I have no access to any information about how it was coded. Specifically, I am trying to manipulate a JXTreeTable. One of the columns, of type Boolean,…
Ding Dong
  • 13
  • 3
0
votes
0 answers

JTable losing values when focus is lost

My JTable/ JXTreeTable "forgets" the values just entered and reverts to the default value of "Value x" when cell focus is lost (by clicking another cell, hitting enter, etc). I have found a few suggestions on SO and nothing has helped. One was to…
JavaBeast
  • 766
  • 3
  • 11
  • 28
0
votes
0 answers

Get two Database Table Values to One JavaFX TreeTable

I have two classes Customer and Product.i stored this class values in database as a two table one for customer other for product. i use inner join for retrieve this data.i want to show this data in JavaFX TreeTable.there is plenty of tutorial but…
NicoleZ
  • 1,485
  • 3
  • 22
  • 43
0
votes
0 answers

Making a Boolean column in a JXTreeTable editable

I have a JXTreeTable structure with 5 columns and I have to make the last one (of Boolean type) editable. I've tried anything, googled for hours, I searched here on SO and I've found similar questions but they're not helping in my specific case…
Zaraki
  • 1
  • 4
0
votes
1 answer

how to apply custom editor to hierarchical column in JXTreeTable?

I have a JXTreeTable for which data model extends DefaultTreeTableModel, and CustomNode extends AbstractMutableTreeTableNode. Each column is editable as expected, as well as hierarchical tree node. How to apply custom editor (TreeTableCellEditor) to…
will
  • 1
  • 1
0
votes
0 answers

JavaFX tree/tableView row column width is not same as header column width

When I fill table tree/tableview with programmatically table row width column is not same table column header with. But after any action inside table (such scrool or click any cell)everything is ok. To understand the problem please look the below…
sancho
  • 598
  • 2
  • 8
  • 22