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

11
LINES

< > BotCompany Repo | #1014712 // onEnterInAllTextFields (and combo boxes)

JavaX fragment (include)

static void onEnterInAllTextFields(JComponent c, Runnable action) {
  if (action == null) ret;
  for (Component tf : allChildren(c))
    onEnterIfTextField(tf, action);
}

static void onEnterInAllTextFields(L c, Runnable action) {
  for (O o : unnull(c))
    if (o cast JComponent)
      onEnterInAllTextFields(o, action);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014712
Snippet name: onEnterInAllTextFields (and combo boxes)
Eternal ID of this version: #1014712/7
Text MD5: 4c5b47efe49953a6f066e3bd40a1dd38
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-01 00:46:19
Source code size: 334 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 416 / 460
Version history: 6 change(s)
Referenced in: [show references]