I’m looking for a way to be informed when a JTable has scrolled such that a particular row becomes visible, or failing that, when the bottom of the table has scrolled into view. Ideally this should be done without polling, but through some event firing. any ideas?
Share
Add a
ChangeListenerto the viewport of the scrollpane.then this checks the visible rows (can easily be extended to columns as well)
Ignore the
sorterif your table is not sortable.