I am currently building a database using JTable and DefaultTableModel. In my program I have a function which allows users to search the database. I have the search part buil
The Swing tutorial on How to Use Tables has a section on filtering so you can just dislay the data that meet the search criteria. If you want to see all the data, then you just remove the filter.
If you really want to do separate highlighting then I would take a look at the Table Row Rendering approach.