1 | static JMenuBar addMenuBar(final Component c) { |
2 | ret swing(func -> JMenuBar { |
3 | RootPaneContainer f = getPossiblyInternalFrame(c); |
4 | if (f == null) null; |
5 | JMenuBar bar = cast call(f, 'getJMenuBar); |
6 | if (bar == null) { |
7 | setMenuBar(f, bar = new JMenuBar()); |
8 | revalidate((Component) f); |
9 | } |
10 | ret bar; |
11 | }); |
12 | } |
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: | 689 / 717 |
Version history: | 8 change(s) |
Referenced in: | [show references] |