static JMenuBar addMenuBar(final Component c) { ret swing(func -> JMenuBar { RootPaneContainer f = getPossiblyInternalFrame(c); if (f == null) null; JMenuBar bar = cast call(f, 'getJMenuBar); if (bar == null) { setMenuBar(f, bar = new JMenuBar()); revalidate((Component) f); } ret bar; }); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004033 |
Snippet name: | addMenuBar |
Eternal ID of this version: | #1004033/9 |
Text MD5: | 1b27e2a7206f0b12a0fbc50a05b6f376 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-08 21:32:13 |
Source code size: | 342 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 672 / 693 |
Version history: | 8 change(s) |
Referenced in: | [show references] |