Non-editable table columns in Gantt Chart

Article ID: 2268
Last updated: 29 May, 2018
Article ID: 2268
Last updated: 29 May, 2018
Revision: 3
Views: 685
Posted: 08 Jun, 2010
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

Is it possible to set the table columns to be non-editable on the Gantt chart?

Answer


You can remove the cell editor that is used by the column that you want to set as non-editable. For example:

IlvJTable table = gantt.getTable();
javax.swing.table.TableColumn column = table.getColumn(indexOfColumn)
column.setCellEditor(null);

You can look at the Gantt Database sample for an example of this technique.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2268
Last updated: 29 May, 2018
Revision: 3
Views: 685
Posted: 08 Jun, 2010 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category