Download Jar. Libraryless. Click here for Pure Java version (7606L/53K).
!7 p { JDesktopPane desktop = jDesktopPane(); showFrame(desktop); JInternalFrame f = addInternalFrame(desktop, "Test"); JMenuItem item = jMenuItem("Hello"); bindToComponent(item, r { print("Showing") }, r { print("Hiding") }); addMenu(f, "Menu", item); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1016722 |
| Snippet name: | JMenuItem bindToComponent Test (OK) |
| Eternal ID of this version: | #1016722/2 |
| Text MD5: | 814e3c15aa0233bf0fe78ecbb4790683 |
| Transpilation MD5: | 563941cf6851bdaaea14aff78d9091d4 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-30 13:44:20 |
| Source code size: | 276 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 910 / 1898 |
| Version history: | 1 change(s) |
| Referenced in: | #1016723 - JMenuItem bindToComponent Test with JTattoo (not OK, called only once) |