Download Jar. Uses 3874K of libraries. Click here for Pure Java version (2880L/20K).
1 | !7 |
2 | |
3 | p-substance { |
4 | new JMenuBar mb; |
5 | |
6 | // A menu for reference |
7 | JMenu menu = new JMenu("Menu"); |
8 | addMenuItem(menu, "Item", null); |
9 | mb.add(menu); |
10 | |
11 | addDirectMenuItem(mb, "Hello", r { infoBox("Hello") }); |
12 | |
13 | setMenuBar(mb, showFrame()); |
14 | } |
Began life as a copy of #1010357
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010360 |
Snippet name: | Test adding a JMenuItem to JMenuBar directly [shortened, OK] |
Eternal ID of this version: | #1010360/3 |
Text MD5: | c6eedb98b3813edffdd6f9451faf92dc |
Transpilation MD5: | 1ee01fec29212118733a2212343625e6 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-12 16:19:55 |
Source code size: | 260 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 573 / 1245 |
Version history: | 2 change(s) |
Referenced in: | [show references] |