Libraryless. Click here for Pure Java version (2663L/17K).
1 | svoid setChecked(JCheckBox checkBox, bool b) {
|
2 | if (checkBox != null) swing {
|
3 | if (isChecked(checkBox) != b) |
4 | checkBox.setSelected(b); |
5 | } |
6 | } |
7 | |
8 | svoid setChecked(JCheckBoxMenuItem mi, bool b) {
|
9 | if (mi != null) swing { mi.setSelected(b); }
|
10 | } |
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: | 1100 / 2058 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |