Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding Row Numbers to JTable

843804Jun 24 2005 — edited May 24 2006
Hello,

I'd like to add row numbers to a JTable. This seems easy enough to do, if I just add a column to hold row numbers. The problem is that I'd like to use TableSorter, but if I do that, row numbers will not remain constant.

How would I go about getting TableSorter to "skip" that column?

Or...

How else could I go about this?

Thanks,

-Adam
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2006
Added on Jun 24 2005
8 comments
499 views