1 | static JMenu getMenuNamed(JMenuBar bar, S name) { |
2 | int n = bar.getMenuCount(); |
3 | for i to n: { |
4 | JMenu m = bar.getMenu(i); |
5 | if (m != null && eq(m.getText(), name)) |
6 | ret m; |
7 | } |
8 | null; |
9 | } |
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: | 579 / 551 |
Version history: | 1 change(s) |
Referenced in: | [show references] |