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

11
LINES

< > BotCompany Repo | #1016900 // addRowToTableWithSearcher

JavaX fragment (include)

svoid addRowToTableWithSearcher(final TableSearcher ts, final Map row) {
  if (ts == null) ret;
  if (isTrue(callF(ts.rowTester, ts.input(), row))) swing {
    // TODO: add columns if necessary
    L<S> cols = tableColNames(ts.table);
    O[] array = new O[l(cols)];
    for i over array:
      array[i] = row.get(cols.get(i));
    getDefaultTableModel(ts.table).addRow(array);
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016900
Snippet name: addRowToTableWithSearcher
Eternal ID of this version: #1016900/4
Text MD5: 414c7c6a1850bb05c3e0615d75d849c3
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-07 14:03:36
Source code size: 393 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 414 / 444
Version history: 3 change(s)
Referenced in: [show references]