Questions tagged [jtreetable]

JTreeTable is a Java Swing component that combines tree and table capabilities in one. It is an extension of the standard Swing library. One of implementations is available from Swing Labs, some other may exist.

JTreeTable is a Java Swing component that combines tree and table capabilities in one. It is an extension of the standard library. One of implementations was available from Swing Labs, other may exist.

Source code on how to just JTreeTable on the base of the standard Swing (combining Table and JTree) can be found here.

46 questions
2
votes
1 answer

JTreeTable display problem

I've the following problem.. I've created a JTreeTable and a model which extends AbstractTreeTableModel. The problem is that my data are shown only if I call the fireTreeStructureChanged() method after each inserting operation. In…
marco
  • 295
  • 3
  • 13
2
votes
1 answer

JTreeTable updating

I'm trying to use the example taken from the http://java.sun.com/products/jfc/tsc/articles/treetable2/index.html, in which I've substituted the filesystem model with my model. I initially create a model, I display it in the JTreeTable, but now I'd…
marco
  • 295
  • 3
  • 13
2
votes
1 answer

set different jtree row heights dynamically

All, Spent last two days trying to dynamically set different row heights for a JTree but zero success. Below is an image of what I'm trying to achieve... Here's what I have tried: (1) using setRowHeight(0) so the node would query it's current cell…
Strokes
  • 157
  • 7
  • 23
2
votes
1 answer

How to set custom DefaultTreeCellRenderer at JXTreeTable

I want to set my custom DefaultTreeCellRenderer. So I have built this class: class CustomTreeTableSpeseXCategoriaSpese extends DefaultTreeCellRenderer { /** * */ private static final long serialVersionUID = 4842418316518803090L; …
bircastri
  • 2,169
  • 13
  • 50
  • 119
2
votes
4 answers

How to present a hierarchical String list with checkboxes in Java Swing?

So. The ideas have been a few.. no good ones.. So here is the problem i have incountered and can not figure out a solution for. I need to have a txt file containing a hierarchical list of things to do, looking something like this: Ask a…
Pewdut
  • 35
  • 2
  • 9
2
votes
3 answers

Multi-leveled (nested?) Jlist in Java

Is there a way to create a JList that has more than one (I'm aiming at three) levels? Something like this: level 1 item level 2 item level 2 item level 3 item level 1 item level 1 item level 2 item level 2 item level 3 item …
Ivan Karlovic
  • 221
  • 5
  • 14
1
vote
1 answer

JTreeTable model updating

I'm following the example of JTreeTable filesystem2 taken from the sun site http://java.sun.com/products/jfc/tsc/articles/treetable2/index.html#updating_the My problem is that I can't update my model (and then my JTreeTable)... In fact I create my…
marco
  • 295
  • 3
  • 13
1
vote
2 answers

Multi Dimensional array to JTree in java

i want to assign a multidimensional array to jtree. how can i do this? here is sample of an array: ROOT:{ FolderA : {FileA,FileB} , FolderB: {FileA,FileB} } .... Also i want to determine files and assign icon to them.
ShirazITCo
  • 1,041
  • 6
  • 23
  • 38
1
vote
1 answer

Jtable with expandable jtable for each row

I'm trying to obtain a table where you can collapse rows using a + or whatever symbol, like in this image from Access: Actually, I would like to have the same behaviour, with the title of the columns like that. I will use only 2 levels: the one…
Learning from masters
  • 2,032
  • 3
  • 29
  • 42
1
vote
1 answer

How can I add checkbox in tree table

I want to created a Tree with multi-columns. I found this tutorial here (German) and this answer (English). I want to add checkboxes in one column, but I have no idea how to do it. When I return a checkbox to JTreeTable, something show in execute is…
Ives
  • 505
  • 1
  • 4
  • 14
1
vote
0 answers

How to get the selected node of a Tree Table in swing?

I have implemented a tree table in swing refrring the tutorial available here .I have two columns in which Message Object or Fields objects under the Message will be displayed. If the node is a Field then it's Value will be displayed in the second…
sher17
  • 607
  • 1
  • 12
  • 31
1
vote
0 answers

"AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 in Swing's JTree

Here is the exception i am getting, when i am trying to save the first value of int[] to a simple primitive. The array is part of a JTree. Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 I studied other topics…
Gary Klasen
  • 1,001
  • 1
  • 12
  • 30
1
vote
1 answer

expand/collapse listener for netbeans outline

I am using org.netbeans.swing.outline How can I setup an expand/collapse Listener to the generated Tree?
giskou
  • 804
  • 2
  • 8
  • 22
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
1 answer

eclipse : treetable creating the tree from the second column

I managed to make a treetable using treeColumn() using various examples from the net and it appears like this | Column1 | Column2 | -------------------------------- |+ColItem1 | Col2Item1 | | -Col1subitem1 | Col2subitem2 | | …
Udayaditya Barua
  • 1,151
  • 12
  • 26