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

11
LINES

< > BotCompany Repo | #1016723 // JMenuItem bindToComponent Test with JTattoo (not OK, called only once)

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

Download Jar. Uses 1177K of libraries. Click here for Pure Java version (7624L/53K).

1  
!7
2  
3  
p {
4  
  jtattoo_mcWin();
5  
  JDesktopPane desktop = jDesktopPane();
6  
  showFrame(desktop);
7  
  JInternalFrame f = addInternalFrame(desktop, "Test");
8  
  JMenuItem item = jMenuItem("Hello");
9  
  bindToComponent(item, r { print("Showing") }, r { print("Hiding") });
10  
  addMenu(f, "Menu", item);
11  
}

Author comment

Began life as a copy of #1016722

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: #1016723
Snippet name: JMenuItem bindToComponent Test with JTattoo (not OK, called only once)
Eternal ID of this version: #1016723/3
Text MD5: 00ee79c06b63d6ea98af7f76d2e3a89f
Transpilation MD5: b4f4f5327cbd8a18c9d4977185a83cf2
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-03 20:52:34
Source code size: 296 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 359 / 776
Version history: 2 change(s)
Referenced in: [show references]