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

11
LINES

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

JavaX fragment (include)

1  
static void titlePopupMenuItem(Component c, fS name, fO action) {
2  
  titlePopupMenu(c, voidfunc(JPopupMenu menu) {
3  
    addMenuItem(menu, name, action);
4  
  });
5  
}
6  
7  
static void titlePopupMenuItem(Component c, final JMenuItem menuItem) {
8  
  titlePopupMenu(c, voidfunc(JPopupMenu menu) {
9  
    addMenuItem(menu, menuItem);
10  
  });
11  
}

Author comment

Began life as a copy of #1006548

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006764
Snippet name: titlePopupMenuItem - adds to the menu if it already exists
Eternal ID of this version: #1006764/7
Text MD5: 4dd8c0ae5d378c8d0ae81374513307ff
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-06 13:23:23
Source code size: 330 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 541 / 579
Version history: 6 change(s)
Referenced in: [show references]