swingswingxjxtreetable

Making JXTreeTable Editable


Can anyone provide a concrete example of how to make a JXTreeTable editable? Specifically, I would like to make all cells in one column editable. It does not appear to be the case that this functionality is supported out of the box.


Solution

  • The JXTreeTable has all the functionality of a regular JTable, so you can use the setCellEditor and setDefaultEditor methods. So start looking for a concrete example of an editable JTable and you can use (more or less) the same code