I m having a JTable in which I m appending columns programatically. When i click on the header of the column(s) that column gets selected. If there are 10 columns and i click on 5 columns then all the 5 columns get selected but there is no way to deselect the columns by clicking on the header again. I want that if a column is already selected and if i click on the header of that column then it should deselect that column. Can anyone help me out on this issue?