This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Here is a snippet that I am using to catch which column header is being selected.
The problem is when the user wants to resize the column width. Since Microsoft Excel allows the user to double-click between the columns to resize, if the user tries this the mouse listener is being triggered and the column is being sorted (but not resized).
Any idea on how I can determine if the mouse is being held between two columns (cursor changes to <--> instead of the default cursor)?