2

I'm trying to set a custom tree cell editor for the tree column of a JXTreeTable, but for some reason, my editor is never called.

Here's the bit that is supposed to set the editor:

dataTable.setDefaultEditor(DataEntity.class, new NumberedListEditor(hierarchyRelation));

My implementation of getColumnClass() returns DataEntity.class and I overrode isCellEditable() in my model to always return true.

What else could be the problem?

4

1 回答 1

0

setDefaultEditor() 对我有用:

tbl_attribute.setDefaultEditor(String.class, new FeatureSearchAttributeTreeCellEditor());
于 2017-03-06T10:27:04.817 回答