tags:

views:

34

answers:

2

Hello,

I would like to have some exemple of implementation of jXSearchPanel with jTable. I didn't find something on the web.

Thank you in advance,

Best Regards,

Florent

A: 

How about the official one?

You can download source from this java net project.

Rekin
Thank you for your answer, but the official one doesn't show an example of the implementation of jxsearchpanel. If someone has code that show the implementation of this component with jTable, it's will be very helpful. Thank you in advance
Delildor
A: 

I have successful implement the jxsearchpanel with jtable. This is my code:

    TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(tableModel);
    jTable1.setRowSorter(sorter);
    Pattern pattern = jXSearchPanel1.getPattern();
    sorter.setRowFilter(RowFilters.regexFilter(pattern, 0));
Delildor