Uses 911K of libraries. Click here for Pure Java version (4131L/23K).
1 | !7 |
2 | |
3 | compact module KilroyPopupMenus {
|
4 | int count; |
5 | transient JLabel lbl; |
6 | |
7 | start {
|
8 | dm_vmBus_onMessage('showingPopupMenu, voidfunc(JComponent c, JPopupMenu menu) enter {
|
9 | addMenuItem(menu, "Kilroy!", rThread dm_activateModule); |
10 | setField(count := count+1); |
11 | setText(lbl, makeText()); |
12 | }); |
13 | } |
14 | |
15 | visualize { |
16 | ret lbl = setIconTextGap(25, jcenteredimage(makeText(), #1101473)); |
17 | } |
18 | |
19 | S makeText() { ret n2(count, "menu") + " kilroyed, mofo"; } |
20 | } |
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: | 541 / 847 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |