This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Search implemented using AbstractModel  RSS feed

 
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: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at TableRowSorter.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!