public synchronized void search(String searchString,boolean regexp){
  int i;
  SearchParameters params;
  m_RegExpSearch=regexp;
  m_SearchString=searchString;
  params=new SearchParameters(m_SearchString,m_RegExpSearch);
  if (m_SearchString == null) {
    m_DisplayIndices=null;
  }
 else {
    m_DisplayIndices=new TIntArrayList();
    for (i=0; i < getActualRowCount(); i++) {
      if (isSearchMatch(params,m_SortedIndices[i]))       m_DisplayIndices.add(i);
    }
  }
  fireTableDataChanged();
}

public synchronized void search ( String searchString , boolean regexp ) { int i ; SearchParameters params ; m_RegExpSearch = regexp ; m_SearchString = searchString ; params = new SearchParameters ( m_SearchString , m_RegExpSearch ) ; if ( m_SearchString == null ) { m_DisplayIndices = null ; } else { m_DisplayIndices = new TIntArrayList ( ) ; for ( i = 0 ; i < getActualRowCount ( ) ; i ++ ) { if ( isSearchMatch ( params , m_SortedIndices [ i ] ) ) m_DisplayIndices . add ( i ) ; } } fireTableDataChanged ( ) ; }
performs a search for the given string . limits the display of rows to ones containing the search string .
