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

9
LINES

< > BotCompany Repo | #1004073 // getMenuNamed

JavaX fragment (include)

static JMenu getMenuNamed(JMenuBar bar, S name) {
  int n = bar.getMenuCount();
  for i to n: {
    JMenu m = bar.getMenu(i);
    if (m != null && eq(m.getText(), name))
      ret m;
  }
  null;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004073
Snippet name: getMenuNamed
Eternal ID of this version: #1004073/2
Text MD5: 1fa27c14fbec5ea106c84cc4579fd41a
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-24 14:26:07
Source code size: 204 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 574 / 546
Version history: 1 change(s)
Referenced in: [show references]