public static void showOnlyThisColumns(JXTable table, Object[] columns) {
    for (Object tableColumns : columns) {
      table.getColumnExt(tableColumns).setVisible(true);
    }
//    updateColumnsSize();
  }
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