Libraryless. Click here for Pure Java version (2663L/17K).
svoid setChecked(JCheckBox checkBox, bool b) { if (checkBox != null) swing { if (isChecked(checkBox) != b) checkBox.setSelected(b); } } svoid setChecked(JCheckBoxMenuItem mi, bool b) { if (mi != null) swing { mi.setSelected(b); } }
Began life as a copy of #1001822
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1006951 |
Snippet name: | setChecked |
Eternal ID of this version: | #1006951/3 |
Text MD5: | abecbce05985506a6298d8f6a951dd84 |
Transpilation MD5: | a1fe838cf53392b37ce9e30cb804741f |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-03 20:32:46 |
Source code size: | 257 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 645 / 1464 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |