Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1019362 // Test JMenu populated on demand (shortened, OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (6500L/46K).

!7

p-exp {
  JFrame f = showFrame("Yo");
  addFullyDynamicMenu(f, "Dynamic menu", voidfunc(JMenu m) {
    m.add(new JMenuItem("MenuItem 1.1." + now()));
    m.add(new JMenuItem("MenuItem 1.2." + now()));
  });
}

Author comment

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: 272 / 757
Version history: 1 change(s)
Referenced in: [show references]