Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1004262 // sortTable - sort a JTable

JavaX fragment (include)

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: 594 / 583
Referenced in: [show references]