public void actionPerformed(ActionEvent event) {
for(int i=0; i<14; i++) {
boolean visibility = Boolean.parseBoolean(col_set_table.getModel().getValueAt(i, 0).toString());
String column_name = col_set_table.getModel().getValueAt(i, 1).toString();
//cols.get(column_name).setVisible(visibility);
if(visibility == false) column_model.removeColumn(cols.get(column_name));
System.out.println("Column from set " + cols.get(column_name).getHeaderValue());
System.out.println("<--->" + column_name + "<---->" + visibility);
}
}
});