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

4
LINES

< > BotCompany Repo | #1024928 // addMenuIfNempty - replaces whole menu if it is there. add only when not empty

JavaX fragment (include)

static JMenu addMenuIfNempty(final Component c, fS menuName, fO... items) {
  temp tempSetTL(addMenu_addIfEmpty, false);
  ret addMenu(c, menuName, items);
}

Author comment

Began life as a copy of #1004034

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024928
Snippet name: addMenuIfNempty - replaces whole menu if it is there. add only when not empty
Eternal ID of this version: #1024928/1
Text MD5: 1b4782356a88ffd257b65f67a071f8de
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-30 14:19:48
Source code size: 160 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 314 / 386
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)