static int searchInTable(final S pat, final JTable table) { ret (int) swingAndWait(func { L<Map<S, S>> data = getTableData(table); for (int i = 0; i < l(data); i++) if (anyValueContainsIgnoreCase(data.get(i), pat)) { selectRow(table, i); ret i; } ret -1; }); }
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: | #1004325 |
| Snippet name: | searchInTable |
| Eternal ID of this version: | #1004325/1 |
| Text MD5: | bf63c19726189f936515d4f3f4329cdc |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-08-13 15:41:02 |
| Source code size: | 328 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 852 / 836 |
| Referenced in: | [show references] |