editable row in jxtable
I have a jxtable. I overwrote the isCellEditable() method to return all false so the whole table is non-editable. I also have setCellSelectionEnabled(true);
Now I want to add a modify button. When this button is clicked, the entire row where the cell was clicked will become editable. Once the cursor moves outsides of this row, the entire table will become non-editable again.
My questions are:
1. How do I set a single row editable?
2. I am assuming that I might have to implement keyListener and moseClick listener for the row changes. Since I don't have the SetRowSelectionAllowed() set to true, so I can't use getSelectedRows(), how do I find out what row the cursor is at?