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

10
LINES

< > BotCompany Repo | #1006951 - setChecked

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

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); }
}

Author comment

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: 378 / 1148
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1006951 & http://1006951.tinybrain.de