Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable Search implemented using AbstractModel

 
Rahul Bansode
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a JTable with my own datamodel(using AbstractTableModel) , I have provided a textfield to search a particulat data in JTable, and I have also provided radio buttons to search inside a specific column .

After click on search button , it must only show those records matching with text in search field.


Please suggest a solution.

Thanks in Advance..
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at TableRowSorter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic