I have a class that reads from a text file, splits the string by a delimiter and adds them to an object depending on the first line.
Now everything adds to a linkedlist which later get all represented in a JTable.
In the GUI I have a JComboBox with various Categories. What I want is to filter the JTable according to the selected item.
This is a screenshot to help you understand more:

Code:
- Processing: http://pastebin.com/4L427yDY
- GUI_g: http://pastebin.com/rfaR3ehC
- ProgramTableModel: http://pastebin.com/eLvcfPVM
How do I do this?
You can use a
javax.swing.table.TableRowSorterfor sorting and filtering: See TableRowSorter. You’ll probably have to implement your own (simple)javax.swing.RowFilter, see RowFilter.An example: http://www.javapractices.com/topic/TopicAction.do?Id=163