KarimS
KarimS

Reputation: 3902

Jtable disable hover selected row

i have a little problem with jtable :

enter image description here

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 : enter image description here

Upvotes: 0

Views: 498

Answers (2)

camickr
camickr

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

Salah
Salah

Reputation: 8657

Try to use:

table.clearSelection();

Or for a particular cell use.

columnModel.getSelectionModel().clearSelection();

Upvotes: 1

Related Questions