Adding a listener on the IlvGanttChart's JSplitPane

Article ID: 2196
Last updated: 28 May, 2018
Article ID: 2196
Last updated: 28 May, 2018
Revision: 3
Views: 797
Posted: 17 Feb, 2010
by Dean J.
Updated: 28 May, 2018
by Gargani A.

Question

I would like to add a listener on the IlvGanttChart's JSplitPane, but I don't have any access to it. What should I do?

Answer

An API is provided for such action. See the IlvHierarchyChart.addChartDividerListener(ChartDividerListener) documentation for further details.

It is not possible to have access to the JSplitPane directly through the JViews API. However, because the JSplitPane is the only child of the IlvHierarchyChart (as long as both the table and ganttSheet are set to visible), you can get the split pane by calling ganttChart.getComponent(0), and casting the result in a JSplitPane object.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2196
Last updated: 28 May, 2018
Revision: 3
Views: 797
Posted: 17 Feb, 2010 by Dean J.
Updated: 28 May, 2018 by Gargani A.
Also listed in


Others in this category