static void sortTable(final JTable table) { swingAndWait(r { L<Map<S, S>> data = getTableData(table); if (empty(data)) ret; S sortKey = firstKey(first(data)); if (empty(sortKey)) ret; data = sortedByField(data, sortKey); dataToTable_uneditable(table, data); }); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004262 |
Snippet name: | sortTable - sort a JTable |
Eternal ID of this version: | #1004262/1 |
Text MD5: | e4487110410efdcb04ff648c8ba88104 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-11 23:48:32 |
Source code size: | 300 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 595 / 584 |
Referenced in: | #1004264 - sortTables - sort multiple JTables #1005992 - sortTableRaw - sort a JTable that may contain images #1006654 - Standard functions list 2 (LIVE, continuation of #761) |