Hoj,
pokousim se upravit RowFilter aby filtroval na vice column na muj TableModel a 
asi jdu spatnym smerem(porad mi hazi null exception):
                hodnotaFiltru[column] = jTextField1.getText();
                TableRowSorter sorter = (TableRowSorter) jTab.getRowSorter();   
             
                RowFilter<TableModel, Object>[] rf = null;              
                try {
                    for (int i = 0; i < jTab.getColumnCount(); i++) {
                    if ((hodnotaFiltru[i]!= null)&&(hodnotaFiltru.length>0)){ 
                        rf[i] = RowFilter.regexFilter(hodnotaFiltru[i], i);    
                    }
                    }
                    
                } catch (java.util.regex.PatternSyntaxException e) {
                    return;
                }
                
                for (int i = 0; i < rf.length; i++) {
                sorter.setRowFilter(rf[i]);    
                }

funguje mi verze filtrovani na jeden column 
                hodnotaFiltru[column] = jTextField1.getText();
                TableRowSorter sorter = (TableRowSorter) jTab.getRowSorter();   
  
                RowFilter<TableModel, Object> rf = null;       
                try {                   
                        rf = RowFilter.regexFilter(hodnotaFiltru[column], 
column);                                      
                } catch (java.util.regex.PatternSyntaxException e) {
                    return;
                }
                sorter.setRowFilter(rf);    

nemohl by me nekdo navest, nebo spis rict jestli to vubec jde tak upravit jak 
potrebuju ?

PetrR

Odpovedet emailem