Reputation: 3902
i have a little problem with jtable :
when i click on the Appliquer utton, he clera all the table except the in-write cell, so i need to unset in-write mode??
that how it look like when i have clicked Appliquer button :
Upvotes: 0
Views: 498
Reputation: 324118
You are still editing the data in the cell so it has not bee saved to the TableModel yet.
See Table Stop Editing for a couple of solutions that will make sure the data is saved when you click a button.
Upvotes: 2
Reputation: 8657
Try to use:
table.clearSelection();
Or for a particular cell use.
columnModel.getSelectionModel().clearSelection();
Upvotes: 1