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)

static JTextField onEnterAndNow(JTextField tf, final O action) {
  onEnter(tf, action);
  pcallF(action);
  ret tf;
}

static JButton onEnterAndNow(JButton btn, final O action) {
  onEnter(btn, action);
  pcallF(action);
  ret btn;
}

static JList onEnterAndNow(JList list, final O action) {
  onEnter(list, action);
  pcallF(action);
  ret list;
}

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: 394 / 439
Version history: 1 change(s)
Referenced in: [show references]