static JList jlist(final L<S> l) { ret (JList) swing(func { new JList list; final WeakReference<JList> ref = weakRef(list); listPopupMenuItem(list, "Copy text to clipboard", r { copyTextToClipboardIfNotNull(selectedItem(ref!)) }); fillListWithStrings(list, l); ret list; }); } static JList jlist(S... l) { ret jlist(asList(l)); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004938 |
| Snippet name: | jlist - make JList from strings |
| Eternal ID of this version: | #1004938/10 |
| Text MD5: | 6a9a2ef80b91d7de53f9d8da21881050 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-23 14:17:21 |
| Source code size: | 380 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 922 / 909 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |