Libraryless. Click here for Pure Java version (3144L/19K).
// r : runnable or voidfunc(bool) static JCheckBoxMenuItem jCheckBoxMenuItem(S text, bool checked, final O r) { final JCheckBoxMenuItem mi = swing(() -> new JCheckBoxMenuItem(text, checked)); addActionListener(mi, r { callF(r, isChecked(mi)) }); ret mi; } static JCheckBoxMenuItem jCheckBoxMenuItem(S text, bool checked, IVF1<Bool> r) { ret jCheckBoxMenuItem(text, checked, (O) r); }
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: | 640 / 722 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028019 - jCheckBoxMenuItem_dyn - with lambda getting value on show #1035497 - jAlwaysCheckedMenuItem |