How can I put a listener that tells me when the mouse icon has changed from a simpe mouse pointer to a double headed arrow
I don't think there is an event for this, but you can check to see which cursor is displayed when the mouse click event is generated.
Here is my solution that uses this approach. To resize the row you use a double click. Note, the code appears more complicated because it will also handle the situation where a sorter is being used on the table. That is, when you click in the resizing area, sorting on the row will NOT be invoked.
Note: the above code uses the
Table Column Adjuster class to determine the maximum width of the column.