Download Jar. Libraryless. Click here for Pure Java version (6500L/46K).
1 | !7 |
2 | |
3 | p-exp {
|
4 | JFrame f = showFrame("Yo");
|
5 | addFullyDynamicMenu(f, "Dynamic menu", voidfunc(JMenu m) {
|
6 | m.add(new JMenuItem("MenuItem 1.1." + now()));
|
7 | m.add(new JMenuItem("MenuItem 1.2." + now()));
|
8 | }); |
9 | } |
Began life as a copy of #1019358
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019362 |
| Snippet name: | Test JMenu populated on demand (shortened, OK) |
| Eternal ID of this version: | #1019362/2 |
| Text MD5: | 9f780a61b127f848af21a2c5942e92d9 |
| Transpilation MD5: | 369aa733f96673191ff5d0d93a1eefad |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-04 15:41:01 |
| Source code size: | 220 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 716 / 1689 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |