Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jtable refresh while retaining the sorting  RSS feed

 
Anusha Bhatnagar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Could any one tell me how to refresh my jtable while retaining the present order by which the table is sorted?I'm also using an external jar for creating column filter.At present,I'm only creating a new TableModel every time to refresh it.so by doing that,I lose all the sorting order and filters.

Thanks
 
Stephan van Hulst
Saloon Keeper
Posts: 6966
109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you creating a new model every time? Why don't you just refresh the existing model instead?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!