I have a Power Table that’s bound to a database table to enable simple editing of string ‘templates’.
The strings in the table need to retain their newline characters, but when a user edits the Power Table cell, the newlines are stripped and the string becomes a single line.
I believe this is because the editor of the PT is an instance of DefaultCellEditor with a JTextField editor component, which only supports editing single text lines. The other components that DefaultCellEditor supports are the JComboBox and JCheckBox.
I think I either need to implement the TableCellEditor interface, or somehow extend DefaultCellEditor, but am unsure how to accomplish this, especially within the configureEditor PT extension function.