• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Stop JTable from Scrolling on Insert  RSS feed

 
Ran Pleasant
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When rows are inserted above the selected row in a JTable the selected row is scrolled down. I have code that moves the selected row back into the visible rect of the JTable. Is there a way to prevent the scrolling from happing in the first place? Note that I still need to be able to scoll using the keys and mouse.
Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!