Roufiq
Roufiq

Reputation: 21

Custom Cell Render JXtreetable

this is my first post, I'm actually implementing JXtreetable component, which I have managed to display all the data contained in it, but I want to create a custom cell rendering in order to display parent's row different with their child (i.e make the font to be bold), is there anyone that can help? So far,I can only change column's render by using

myTreeTable.getColumn (int col). setCellRenderer (myRendererObj);

where I had made earlier myRendererObj,

Upvotes: 0

Views: 1573

Answers (1)

whatknight
whatknight

Reputation: 303

You can use the setTreeCellRenderer(...) method of JXTreeTable. You give it a DefaultTreeRenderer which you can then give a ComponentProvider. I subclassed ComponentProvider to do my custom tree cells.

Upvotes: 1

Related Questions