public void applyFilter(String text, int colIndex, int type){ this.text = text; this.colIndex = colIndex; this.type = type;
public void applyFilter(String inText, int inColIndex, int inType){ text = inText; colIndex = inColIndex; type = inType;
    public void applyFilter(String text, int colIndex, int type){        this.text = text;        this.colIndex = colIndex;        this.type = type;        newData.removeAllElements();        Vector tmp = new Vector();        tmp = Model.getDataVector();        //removes white space at begining and end        String input = text.trim();            for (int i=0; i<data.size(); i++) {                tmp = (Vector) data.get(i);                String tmp2 = ""+ tmp.get(colIndex);                String txt = tmp2.trim();                if (type == 0) {                    if ((txt.equalsIgnoreCase(input))) {                        newData.add(tmp);                    }                }else {                    if (((txt.toLowerCase()).contains(input.toLowerCase()))) {                        newData.add(tmp);                    }                }            }        Model.changeDisplayRows(newData);            }