I would like to have a JTable with 10 columns and 3 columns are of similar type. I want the 3 columns to be displayed together always. So whenever one of the 3 columns is rearranged (or moved) to a different position I want all the 3 to be moved together. How can this be achieved?
I tried TableColumnModelListener's columnMoved(). This method is called even if you click on the Table Header or sort columns. I wanted to know only if user manually drags/moves a column to a different position. Please let me know if there is any other option for the same.
Please read the second (fixed) post of the forum which tells you how to format code (and reduce eye strain).
And "short" in SSCCE means to strip the code from any line not necessary to demonstrate the problem.
Have a second try.