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

10
LINES

< > BotCompany Repo | #1005992 // sortTableRaw - sort a JTable that may contain images

JavaX fragment (include)

1  
static void sortTableRaw(final JTable table, final int col, final bool desc) {
2  
  swingAndWait(r {
3  
    L<L> data = rawTableLines(table);
4  
    if (empty(data)) ret;
5  
    sortByIndex(data, col);
6  
    if (desc) data = reversed(data);
7  
    fillTableWithData(table, data, printStruct(tableColNames(table)));
8  
    table.repaint();
9  
  });
10  
}

Author comment

Began life as a copy of #1004262

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005992
Snippet name: sortTableRaw - sort a JTable that may contain images
Eternal ID of this version: #1005992/1
Text MD5: 806452e0564398eaae0dda33f0279c17
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-14 00:16:42
Source code size: 335 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 374
Referenced in: [show references]