public static Integer findColumnIndexByHeader(TableColumnModel columnModel, String columnName) {
    for (int i = 0; i < columnModel.getColumnCount(); i++) {
      final String header = columnModel.getColumn(i).getHeaderValue().toString();
      if (StringUtils.equals(header, columnName)) {
        return i;
      }
    }
    LOGGER.warn("Can't find column index for " + columnName);
    return -1;
  }
Find column index by it's name

@param columnModel column model
@param columnName  column name to find
@return column index or -1 if not found
olv-gui/src/main/java/pl/otros/swing/table/TablesUtils.java