Uses 911K of libraries. Click here for Pure Java version (4131L/23K).
!7 compact module KilroyPopupMenus { int count; transient JLabel lbl; start { dm_vmBus_onMessage('showingPopupMenu, voidfunc(JComponent c, JPopupMenu menu) enter { addMenuItem(menu, "Kilroy!", rThread dm_activateModule); setField(count := count+1); setText(lbl, makeText()); }); } visualize { ret lbl = setIconTextGap(25, jcenteredimage(makeText(), #1101473)); } S makeText() { ret n2(count, "menu") + " kilroyed, mofo"; } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020786 |
Snippet name: | Kilroy all popup menus [prank/test/spike module :)] |
Eternal ID of this version: | #1020786/8 |
Text MD5: | c9a1061d7fd91c2968f549cfe07c7aa6 |
Transpilation MD5: | e83d1fdf2a292e4d74c90a6f73a7ff2e |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-04 00:01:28 |
Source code size: | 482 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 319 / 583 |
Version history: | 7 change(s) |
Referenced in: | [show references] |