Hello, I have a swing application which includes a JTable and a button on the canvas. The JTable is editable and the function of the button is to save the contents of the table once it has been edited.
Now, when the JTable is being edited, assuming the cursor sign (I think that's what it's called) is blinking in once of the cells, and you click on the save button, an exception comes up. Is there a way of setting up my JTables so that when the mouse is not focused on them, or something, the editable state is set to false?
That is how I get the data in the table. But when a cell is being edited and I click on save, an error occurs. Any help would be appreciated.
Many Thanks,
Igwe.