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

17
LINES

< > BotCompany Repo | #1007151 // onEnterAndNow (on JTextField, JButton or JList)

JavaX fragment (include)

1  
static JTextField onEnterAndNow(JTextField tf, final O action) {
2  
  onEnter(tf, action);
3  
  pcallF(action);
4  
  ret tf;
5  
}
6  
7  
static JButton onEnterAndNow(JButton btn, final O action) {
8  
  onEnter(btn, action);
9  
  pcallF(action);
10  
  ret btn;
11  
}
12  
13  
static JList onEnterAndNow(JList list, final O action) {
14  
  onEnter(list, action);
15  
  pcallF(action);
16  
  ret list;
17  
}

Author comment

Began life as a copy of #1001788

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: #1007151
Snippet name: onEnterAndNow (on JTextField, JButton or JList)
Eternal ID of this version: #1007151/2
Text MD5: 1f267a4448680dbd291c202e87ff822b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-07 22:33:37
Source code size: 366 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 473 / 518
Version history: 1 change(s)
Referenced in: [show references]