Question

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?

Was it helpful?

Solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top