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
3
votes
0 answers

How to implement a Filter/Searchfield in JXTreeTable? What is good practice?

I have a class TreeNode which has some attribitues and a ArrayList of children. For this class I have my own TreeModel which extends AbstractTreeTableModel. The created tree is displayed correctly. Now I want to add a search field which searches…
janor
  • 179
  • 1
  • 10
3
votes
1 answer

JXTreeTable Editable Example?

Is there any working example for Editable JxTreeTable.. I did tried some methods. But no luck... Only first column is editable. How can I make all columns editable? Sorry guys, Here is my src code: /* * To change this template, choose Tools |…
Baskar.M
  • 561
  • 1
  • 6
  • 25
3
votes
1 answer

Custom tree cell editing in a SwingX JXTreeTable

I'm trying to set a custom tree cell editor for the tree column of a JXTreeTable, but for some reason, my editor is never called. Here's the bit that is supposed to set the editor: dataTable.setDefaultEditor(DataEntity.class, new…
whatknight
  • 303
  • 1
  • 7
3
votes
0 answers

JXTreeTable Substance L&F paint issues

The first column of JXTreeTable is not painted on hover when using the substance look and feel. The problem persists when that same column is dragged to another position as well. Also the border is not painted as well. Is there any workaround for…
Praveen
  • 522
  • 1
  • 8
  • 17
2
votes
1 answer

Swingx component provider: hide component on certain rows

I've subclassed Swingx's ComponentProvider to provide JButtons but on some lines of my JXTreeTable, I don't want to show any button. The final "result" I want is to have an empty cell, like what I get when showing an empty text in a column for which…
ixM
  • 1,244
  • 14
  • 29
2
votes
0 answers

JXTreeTable selection by code

I need to ask for a little hint about node selection in my JXTreeTable. I added some nodes to it and want to select one node as Default by program. My test function for selecting a node looks like this: public void setSelectionTest() { …
Henner
  • 21
  • 2
2
votes
0 answers

Custom model extending SwingX AbstractTreeTableModel: Some nodes are not shown in GUI

What I am trying to do is to implement a custom control for editing of list attributes (1:n relationships). As I do not have enough reputation to post a screenshot, I will do my best to describe it. It contains a list of records as value, each…
2
votes
0 answers

How can set setTreeCellRenderer at JXTreeTable

I have this code to create a custom JXTreeTable and set a Custom CellRenderer. This is the code: tableCatSpese = new TableAlbero(null); public TableAlbero(List listaConti){ setTreeTableModel(new…
bircastri
  • 2,169
  • 13
  • 50
  • 119
2
votes
1 answer

How can set background color of first column of JXTreeTable

I have a JXTreeTable and I have implements a custom Renderer. So I have this code: public class CustomTreeTableSpeseXCategoriaSpese extends JLabel implements TreeCellRenderer, TableCellRenderer { /** * */ private static final long…
bircastri
  • 2,169
  • 13
  • 50
  • 119
2
votes
1 answer

JXTreeTable expandPath after filtering

I have JXTreeTable which I can filter. When I filter a keyword a new model is set. It works ok for me. Now I want to expand all the filtered results. For that I save the position where the matching node was found. (It cant be a leaf.) For that…
janor
  • 179
  • 1
  • 10
2
votes
3 answers

Checkbox within a JXTreeTable

Still a Java newbie here, trying to stuff far too advanced for my own good. Nevertheless, here's what I need done: A checkbox within a JXTreeTable. My main class: package info.chrismcgee.sky.production; import…
Sturm
  • 689
  • 2
  • 23
  • 52
2
votes
0 answers

ColorHighlighter on JXTreeTable - Change selection color if predicate is true

I'm using an JXTreeTable with several ColorHighlighters to change the background color of the rows that include a specific value. If a row is selected, the color will change to SelectionBackground. Is it possible to change the selection background…
mjohannes
  • 21
  • 4
2
votes
1 answer

How can I prevent a JXTreeTable root node from collapsing?

To prevent a JTree node from collapsing, you can use the setExpandedState() method. I dont see a similar method for the SwingX JXTreeTable class, and it seems that JXTreeTable doesnt extend JXTree (which extends JTree). Any suggestions as to how I…
Swoop
  • 514
  • 5
  • 17
2
votes
1 answer

Variable Size Rows in JXTreeTable

Is it possible to have variable size rows in JXTreeTable, if yes then how ? , I'm trying to change the height of the row on TreeExpansionEvent (As shown below) : public void treeExpanded(TreeExpansionEvent e) { for (int i = 0; i <…
c.pramod
  • 606
  • 1
  • 8
  • 22
2
votes
2 answers

JXTreeTable and JComboBox cell editor

How can I use JComboBox as cell editor in JXTreeTable? Can you give me a working example please?
joycollector
  • 1,986
  • 4
  • 17
  • 18