Changing the default leaf icon of an IlvTreeColumn

Article ID: 2198
Last updated: 28 May, 2018
Article ID: 2198
Last updated: 28 May, 2018
Revision: 3
Views: 705
Posted: 18 Dec, 2001
by Dean J.
Updated: 28 May, 2018
by Gargani A.

Question

How can I change the default leaf icon of an IlvTreeColumn?

Answer

You can change the default leaf, closed, and open icons using the javax.swing.tree.DefaultTreeCellRenderer. The renderer can be retrieved using the following codes:

IlvJTable table = scheduleChart.getTable();
IlvTreeColumn column = table.getTreeColumn("Name");
DefaultTreeCellRenderer renderer = (DefaultTreeCellRenderer) treeColumn.getRenderer();

See IlvTreeColumn.getRenderer() in JViews documentation for further details.

The Custom Gantt demo available at JVIEWS_GANTT_HOME/samples/customData illustrates how to this can be done.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2198
Last updated: 28 May, 2018
Revision: 3
Views: 705
Posted: 18 Dec, 2001 by Dean J.
Updated: 28 May, 2018 by Gargani A.
Also listed in


Others in this category