Libraryless. Click here for Pure Java version (2917L/17K).
sbool isChecked(JCheckBox checkBox) { ret checkBox != null && (bool) swing(func -> bool { checkBox.isSelected() }); } sbool isChecked(JCheckBoxMenuItem mi) { ret mi != null && (bool) swing(func -> bool { mi.isSelected() }); } sbool isChecked(JRadioButton rb) { ret rb != null && (bool) swing(() -> rb.isSelected()); }
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: | #1001822 |
Snippet name: | isChecked |
Eternal ID of this version: | #1001822/6 |
Text MD5: | ba6f473c34a236365c343872186d4aca |
Transpilation MD5: | 193b7d6b505eb8a00e387ce6d02fd735 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-05-11 15:31:58 |
Source code size: | 335 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 763 / 1018 |
Version history: | 5 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1006951 - setChecked |