Freeze table column

[quote=“DougSN”]

I ended up using a timer for this because I couldn’t figure out a way to trigger on the event of the scroll position changing. If I had that trigger/event, it would have been a lot cleaner, I think.[/quote]

In my case the same scroll bar is scrolling both tables because I set the second table to use the same Column Model as the first.

Try this:

singleColumnTable.table.setColumnModel(mainTable.table.getColumnModel())

EDIT: This works for horizontal scroll bars and column widths but does not work for vertical scroll bars. Nevermind.