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)

1  
static void onEnterInAllTextFields(JComponent c, Runnable action) {
2  
  if (action == null) ret;
3  
  for (Component tf : allChildren(c))
4  
    onEnterIfTextField(tf, action);
5  
}
6  
7  
static void onEnterInAllTextFields(L c, Runnable action) {
8  
  for (O o : unnull(c))
9  
    if (o cast JComponent)
10  
      onEnterInAllTextFields(o, action);
11  
}

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: 494 / 539
Version history: 6 change(s)
Referenced in: [show references]