Libraryless. Click here for Pure Java version (2914L/17K).
1 | static <A extends JComponent> A setFocusable(A c, bool b default true) { |
2 | if (c != null) swing { c.setFocusable(b); } |
3 | ret c; |
4 | } |
5 | |
6 | static <A extends JComponent> A setFocusable(bool b, A c) { |
7 | ret setFocusable(c, b); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019918 |
Snippet name: | setFocusable |
Eternal ID of this version: | #1019918/5 |
Text MD5: | 26ad0bcc5431d376021c4af47043b699 |
Transpilation MD5: | e248db3972ce2a1f190aa2c26ed12ab5 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-05-07 18:58:42 |
Source code size: | 225 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 322 / 395 |
Version history: | 4 change(s) |
Referenced in: | [show references] |