2

I am using TreeTable (com.jidesoft.grid, see TreeTable) to display hierarchical data, which uses a special cell renderer on the first column to paint +/- icon as well as tree line. So, a typical View appears as following:

|   Column1  | Column2      |
-----------------------------
|+Item1      | Item4        |
| -Item2     | Item5        |
|   item3    | item6        |

While I want the following view for my TreeTable, with +/- buttons and tree lines in second column:

|   Column1 | Column2       |
-----------------------------
|Item1      | +Item4        |
|Item2      |  -Item5       |
|item3      |    item6      |

I have seen an example and know this is possible, but don't know how to implement this. Any suggestions?

mKorbel
  • 109,525
  • 20
  • 134
  • 319
abksrv
  • 1,347
  • 1
  • 15
  • 34
  • maybe [@jidesoft](http://stackoverflow.com/users/1029967/jidesoft) will look at your question, maybe you have to ask this question on [JIDE Software Developer Forums](http://www.jidesoft.com/forum/) – mKorbel Apr 03 '12 at 06:06

1 Answers1

3

Try TreeTable.setExpandableColumn method.

tenorsax
  • 21,123
  • 9
  • 60
  • 107