I have created with Java Swing a dialog window which presents in a JTable a list of items. I would like to implement some sort of search functions. Can anyone suggest me the best way to implement such feature?
A:
Read the JTable API and follow the link to the Swing tutorial on "How to Use Tables". There you will find a section on "Sorting and Filtering" which gives an example of how to use a text field to search for rows containing the specified text.
camickr
2010-07-14 18:30:27