This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Show Row Index?  RSS feed

 
Stephanie Challand
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you show the row index of a JTable after sorting. I keep getting the original row #. I need where it is currently in the table. I am showing the top X scores and I want the placement number as the first column.

This should be simple, but for some reason it is perplexing me this evening Thanks for the help!
 
Rob Camick
Ranch Hand
Posts: 2801
15
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want the placement number as the first column.


You can use something like the Row Number Table to display row numbers in the first column.

The row number is not part of the data in the table.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!