Search code examples
javanattable

How to change the NatTable column AutoSize drag icon


I want to change the NatTable drag icon which is shown when the cursor is in between two columns.

Here's the default icon:

Default icon

I need to change it to a custom icon like this:

I want to change default icon to the custom one


Solution

  • You need to implement and register a custom ColumnResizeCursorAction. Have a look at the default implementation and how it is registered to see what needs to be done.