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

10
LINES

< > BotCompany Repo | #1006523 // jCheckBoxMenuItem

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3144L/19K).

1  
// r : runnable or voidfunc(bool)
2  
static JCheckBoxMenuItem jCheckBoxMenuItem(S text, bool checked, final O r) {
3  
  final JCheckBoxMenuItem mi = swing(() -> new JCheckBoxMenuItem(text, checked));
4  
  addActionListener(mi, r { callF(r, isChecked(mi)) });
5  
  ret mi;
6  
}
7  
8  
static JCheckBoxMenuItem jCheckBoxMenuItem(S text, bool checked, IVF1<Bool> r) {
9  
  ret jCheckBoxMenuItem(text, checked, (O) r);
10  
}

Author comment

Began life as a copy of #1004036

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006523
Snippet name: jCheckBoxMenuItem
Eternal ID of this version: #1006523/8
Text MD5: 7eacde3415bb22fd63fab19010bdb630
Transpilation MD5: e43233cdbc2c6a14ce7f99338377ccf9
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-07 19:10:24
Source code size: 403 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 572 / 633
Version history: 7 change(s)
Referenced in: [show references]