// action: voidfunc(S item) static void listPopupMenuItem(final JList list, fS name, fO action) { listPopupMenu(list, voidfunc(JPopupMenu menu, final S item) { addMenuItem(menu, name, r { pcallF(action, item) }); }); }
Began life as a copy of #1006548
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009959 |
Snippet name: | listPopupMenuItem - adds to the menu if it already exists |
Eternal ID of this version: | #1009959/1 |
Text MD5: | f48b55d7b9e52836a30aee3942fd5a91 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-27 19:27:05 |
Source code size: | 231 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 559 / 556 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1015826 - listPopupMenuItemsThreaded - adds to the menu if it already exists, runs actions in new thread with messagebox on error |