I want to programatically deselect the currently selected row (or rows) in a JTable.
Basically I want the oposite of this:
JTable table = ...;
table.setRowSelectionInterval(x,x);
I tried (with little hope) using:
table.setRowSelectionInterval(-1,-1)
or
table.setRowSelectionInterval(1,0)
but it doesn't work.
Any ideas?