boolean (int modelRow, String pattern) { int columns = myComponent.getColumnCount(); for (int col = 0; col < columns; col ++) { Object value = myComponent.getModel().getValueAt(modelRow, col); String str = myToStringConvertor.fun(value, new Cell(modelRow, col)); if (str != null && compare(str, pattern)) { return true; } } return false; }