This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Sorting and inserting data in JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Sorting and inserting data in JTable" Watch "Sorting and inserting data in JTable" New topic

Sorting and inserting data in JTable

Shyamala Parvathy

Joined: Jul 07, 2001
Posts: 4
How can i do the sorting the data in the JTable? How can i insert new row in the proper position in the sorted table ? I don't want to reintialise the JTable or the model
San Su
Ranch Hand

Joined: Jul 06, 2001
Posts: 313
There is a table sorter example in sun site.. follow the
It doesnt matter whether the table is sorted or not,
you can always use TableModel.insertRow() method to insert
a new row.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Sorting and inserting data in JTable
It's not a secret anymore!