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

6
LINES

< > BotCompany Repo | #1009959 // listPopupMenuItem - adds to the menu if it already exists

JavaX fragment (include)

// 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) });
  });
}

Author comment

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: 466 / 456
Referenced in: [show references]