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

11
LINES

< > BotCompany Repo | #1001822 // isChecked

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

Libraryless. Click here for Pure Java version (2917L/17K).

1  
sbool isChecked(JCheckBox checkBox) {
2  
  ret checkBox != null && (bool) swing(func -> bool { checkBox.isSelected() });
3  
}
4  
5  
sbool isChecked(JCheckBoxMenuItem mi) {
6  
  ret mi != null && (bool) swing(func -> bool { mi.isSelected() });
7  
}
8  
9  
sbool isChecked(JRadioButton rb) {
10  
  ret rb != null && (bool) swing(() -> rb.isSelected());
11  
}

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: 684 / 911
Version history: 5 change(s)
Referenced in: [show references]