Merge pull request #1379 from SiboVG/caseInsensSort
Sort preset dialog by manufacturer by default
This commit is contained in:
commit
9f8354c68a
@ -154,6 +154,7 @@ public class ComponentPresetTable extends JTable {
|
|||||||
this.setModel(tableModel);
|
this.setModel(tableModel);
|
||||||
this.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
this.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
||||||
this.setRowSorter(sorter);
|
this.setRowSorter(sorter);
|
||||||
|
sorter.toggleSortOrder(2); // Sort by the first column (manufacturer) by default
|
||||||
|
|
||||||
for ( TableColumn hiddenColumn : hiddenColumns ) {
|
for ( TableColumn hiddenColumn : hiddenColumns ) {
|
||||||
tableColumnModel.setColumnVisible(hiddenColumn, false);
|
tableColumnModel.setColumnVisible(hiddenColumn, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user