How to add serial number like column in jtable at left side of jtable?

Recommended Answers

Just add the data to your table model. If you want to render it differently, you can create a custom table cell renderer for that.

Jump to Post

You could also use something like this example with a JList: [url]http://www.java2s.com/Code/Java/Swing-Components/TableRowHeaderExample.htm[/url]

Jump to Post

All 2 Replies

Just add the data to your table model. If you want to render it differently, you can create a custom table cell renderer for that.