I have to disable right click on JTableHeader so that user cannot right click over column header and drag to reposition the columns. Do we have any trick to do that? Just to mention left mouse button click works good but when user does RMB and drags the column, the column is moved and is repainted over the other columns when mouse is released.
Any help is appreciatted.
I tried with Java versions 1.7.0_11 and 1.6.0_38 and doing this:
will lock the columns in place. Are you perhaps using older Java version or doing the disabling some other way?