Transpiled version (3411L) is out of date.
1 | static void addMenuItem(JPopupMenu menu, S text, O action) { |
2 | menu.add(jmenuItem(text, action)); |
3 | } |
4 | |
5 | static void addMenuItem(JPopupMenu menu, JMenuItem menuItem) { |
6 | if (menu != null && menuItem != null) |
7 | menu.add(menuItem); |
8 | } |
9 | |
10 | static void addMenuItem(JMenu menu, S text, O action) { |
11 | menu.add(jmenuItem(text, action)); |
12 | } |
13 | |
14 | static void addMenuItem(Menu menu, S text, O action) { |
15 | menu.add(menuItem(text, action)); |
16 | } |
17 | |
18 | static void addMenuItem(JMenu menu, JMenuItem menuItem) { |
19 | menu.add(menuItem); |
20 | } |
21 | |
22 | svoid addMenuItem(JMenuBar menuBar, S text, Runnable action) { |
23 | addMenuItem(menuBar, jmenuItem(text, action)); |
24 | } |
25 | |
26 | svoid addMenuItem(JMenuBar menuBar, JMenuItem menuItem) { |
27 | addDirectMenuItem(menuBar, menuItem); |
28 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005735 |
Snippet name: | addMenuItem - add JMenuItem to JMenu/JPopupMenu/Menu |
Eternal ID of this version: | #1005735/14 |
Text MD5: | a3aa142535d32720fb5e1f55d4601db8 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-24 22:50:55 |
Source code size: | 745 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 730 / 856 |
Version history: | 13 change(s) |
Referenced in: | [show references] |