// params: column index, Comparator, column index, Comparator, ... svoid rowSorter_setComparatorForAllColumns(JTable table, final Comparator comparator) { please include function setTableModel. if (table == null) ret; setTableModel_fixSorter.put(table, voidfunc(JTable table, RowSorter sorter) { if (sorter cast TableRowSorter) { int n = tableColumnCount(table); for i to n: sorter.setComparator(i, comparator); } }); }
Began life as a copy of #1019463
download show line numbers debug dex old transpilations
Travelled to 11 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019680 |
Snippet name: | rowSorter_setComparatorForAllColumns |
Eternal ID of this version: | #1019680/2 |
Text MD5: | daaca571ed6bad8e5de75fd6f6be0463 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-17 18:41:22 |
Source code size: | 468 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 309 / 356 |
Version history: | 1 change(s) |
Referenced in: | [show references] |