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

19
LINES

< > BotCompany Repo | #1005735 - addMenuItem - add JMenuItem to JMenu/JPopupMenu/Menu

JavaX fragment (include)

static void addMenuItem(JPopupMenu menu, S text, O action) {
  menu.add(jmenuItem(text, action));
}

static void addMenuItem(JPopupMenu menu, JMenuItem menuItem) {
  menu.add(menuItem);
}

static void addMenuItem(JMenu menu, S text, O action) {
  menu.add(jmenuItem(text, action));
}

static void addMenuItem(Menu menu, S text, O action) {
  menu.add(menuItem(text, action));
}

static void addMenuItem(JMenu menu, JMenuItem menuItem) {
  menu.add(menuItem);
}

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1005735
Snippet name: addMenuItem - add JMenuItem to JMenu/JPopupMenu/Menu
Eternal ID of this version: #1005735/12
Text MD5: e346a48c6e5d374495bce9932656ecbd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-23 14:08:55
Source code size: 480 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 390 / 395
Version history: 11 change(s)
Referenced in: [show references]

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