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

6
LINES

< > BotCompany Repo | #1019047 - tablePopupMenuItem_top - adds to the menu if it already exists

JavaX fragment (include)

// action: voidfunc(int row)
static void tablePopupMenuItem_top(final JTable table, fS name, fO action) {
  tablePopupMenuFirst(table, voidfunc(JPopupMenu menu, final int row) {
    addMenuItem(menu, name, r { pcallF(action, row) });
  });
}

Author comment

Began life as a copy of #1006548

download  show line numbers  debug dex   

Travelled to 8 computer(s): cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1019047
Snippet name: tablePopupMenuItem_top - adds to the menu if it already exists
Eternal ID of this version: #1019047/3
Text MD5: 6760c3dda99c9b55adbd26787e52d68a
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-21 18:04:35
Source code size: 246 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 158
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1019047 & http://1019047.tinybrain.de