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
2
votes
1 answer

TableColumnExt not respecting prototype value

I'm trying to use SwingX's TableColumnExt class to set a prototype value for the column's width in the hierarchical column of a JXTreeTable. After I initialize the model and table I do this: TableColumnExt column = dataTable.getColumnExt(0); …
whatknight
  • 303
  • 1
  • 7
1
vote
6 answers

Updating JxTreeTable when model changes

I'm having trouble working out the best way to repaint a JxTreeTable when the underlying model changes. For each node in the table I have a corresponding model object, so if a model changes I can get the Node. Thereafter, given a Node, how do you…
Joel
  • 29,538
  • 35
  • 110
  • 138
1
vote
1 answer

How to identify if a TreeTableNode in a JXTreeTable is hidden?

I'm using swingx JXTreeTable and would like to determine if either a leaf node (AbstractMutableTreeTableNode) is hidden or a parent node is closed. I cann't seem to find an obvious way of doing this. Thanks!
Joel
  • 29,538
  • 35
  • 110
  • 138
1
vote
0 answers

How to load values in default

I am building a tree viewer using JXTreeTable and DefaultTreeTableModel. It will be used to show millions of objects in tree as parent and their child. Using this code to insert value of node in tree - DefaultMutableTreeTableNode child = new…
Neelam Sharma
  • 2,745
  • 4
  • 32
  • 73
1
vote
0 answers

Java JXTreeTable tab character support

Is tab character(\t) or Tab Key is supported in JXTreeTable? As I am entering some input like "My Name" where the space between My & Name is not through spacebar instead it is using the Tab key from the key board. Now when I am seeing this input in…
1
vote
1 answer

Fixed Column on a JXTreeTable

Im trying to add a fixed column on a JXTreeTable. I've used Fixed Column Table and did some adapts to get it working but im having a problem with the collapse event. When i collapse a node on the fixed side it wont collapse on the moving side. See…
Marco Gustavo
  • 69
  • 2
  • 10
1
vote
1 answer

Replace and refresh old JXTreeTable in ScrollPane

I have a JxTreeTable in a scrollpane (gbc_constraints), and by clicking on the button, a file chooser window should open, afterwards the user selects a xml file, which should get parsed as a new JxTreeTable. I want to replace the old one by the new…
Momo
  • 105
  • 7
1
vote
1 answer

How can show String on JXTreeTable

I want to create a simple JXTreeTable, so I have built this code: public static void main(String[] args){ JTreeTable table = new JTreeTable(); JFrame frame=new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); …
bircastri
  • 2,169
  • 13
  • 50
  • 119
1
vote
0 answers

Renderer cell in JXTreeTable in base of content of a rows in java

I'm using JXTreeTable from org.jdesktop.swingx to display a hierarchical structure data, so I've a some parent nodes and some child nodes attached to them. What I want is to have different renderer for parent and child nodes. Example: if JXTreeTable…
user2896152
  • 762
  • 1
  • 9
  • 32
1
vote
0 answers

JXTreeTable: getColumnClass should return different types in base of node

I've a List of Profile objects. Profile has a List of User as its field and I choose to show this information using a JTreeTable in SwingX. I have a problem with getColumnClass(int column) because this method doesn't distinguish if the node is a…
user2896152
  • 762
  • 1
  • 9
  • 32
1
vote
2 answers

CellContext.isExpanded() returns always true in JXTreeTable

I am using a JXTreeTable. I want to show a text in a cell only if the row is collapsed. If the row is expanded the detailed values are shown in the childs so the shortened text in the parent should no longer be visible. As far as I know this need…
Uli
  • 1,390
  • 1
  • 14
  • 28
1
vote
1 answer

java.lang.IllegalArgumentException: column must be valid, was-1

I want to add a set of values to JXTreeTable but I am getting this set of error while running program. Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: column must be valid, was-1 at…
ddk
  • 159
  • 1
  • 4
  • 13
1
vote
0 answers

JXTreeTable drag and drop

I implemented drag and drop in a JXTreeTable and it does not work good in the first column. I have to select the line first, move the mouse pointer else and then go back to be able to drag the row. On the others columns it works fine. I don't think…
Halim
  • 15
  • 4
1
vote
0 answers

JXTreeTable and BorderHighlighter Drawing Border on All Rows

I'm using a BorderHighlighter on my JXTreeTable to put a border above each of the table cells on non-leaf rows to give a more clear visual separator for users. The problem is that when I expand the hierarchical column, all cells in the hierarchical…
Kevin Rubin
  • 587
  • 8
  • 17
1
vote
1 answer

JXTreeTable, row striping and proper repainting

I'm using a look and feel which does row striping of tables by default. When I put in a JXTreeTable, I noticed that for some reason it didn't get the row striping automatically. So I put in a workaround using Highlighter, but it looks like I get a…
Hakanai
  • 12,010
  • 10
  • 62
  • 132