TreeTable First column is not editable by ColoredTreeCellRenderer

i have add this code when tree table is created,

public boolean isCellEditable(int row, int column){
return true;
}

i also add code to make table like tree!



class Renderer extends ColoredTreeCellRenderer {
@Override
public void customizeCellRenderer(@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
//解决TreeTable key加上>
CustomNode node = (CustomNode) value;
append(node.getKey());
}
}

the result is other column is editable but first column is not editable

 

problem 2:

ToolbarDecorator has add remove action but - button is disabled

 

Post is closed for comments.