Remove unused table columns instead of simply hiding them

This commit is contained in:
SiboVG 2023-10-22 23:05:51 +02:00
parent e46c0bec2b
commit 8ea169dc90

View File

@ -163,7 +163,7 @@ public class ComponentPresetTable extends JTable {
this.sorter.toggleSortOrder(2); // Sort by the first column (manufacturer) by default
for (TableColumn hiddenColumn : this.hiddenColumns) {
this.tableColumnModel.setColumnVisible(hiddenColumn, false);
this.tableColumnModel.removeColumn(hiddenColumn);
}
JTableHeader header = this.getTableHeader();