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

8
LINES

< > BotCompany Repo | #1019918 // setFocusable

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

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

static <A extends JComponent> A setFocusable(A c, bool b default true) {
  if (c != null) swing { c.setFocusable(b); }
  ret c;
}

static <A extends JComponent> A setFocusable(bool b, A c) {
  ret setFocusable(c, b);
}

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: 230 / 275
Version history: 4 change(s)
Referenced in: [show references]