I am developing a swing based application.In it,there is a JTable.The data is populated in JTable in two ways-
- User selects a file(File Chooser etc).Application loads the data into JTable.
- Application polls for messages on some network parameters.When message arrives, it loads into JTable.
I now want to give Search option to user.When he types any string in jDialog box, application should focus on that specific row where the string matches to data in row of table.When table is populated, TableModel changes.Each row is vector so table is Vectors of Vector. What data structure will be suitable for this?looping through every row Vector and searching?