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

8
LINES

< > BotCompany Repo | #1017556 // onCtrlEnter

JavaX fragment (include)

static <A extends JComponent> A onCtrlEnter(A c, Runnable action) {
  ret onCtrlEnter(c, (O) action);
}

static <A extends JComponent> A onCtrlEnter(A c, O action) {
  addKeyListener(c, ctrlEnterKeyListener(action));
  ret c;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017556
Snippet name: onCtrlEnter
Eternal ID of this version: #1017556/5
Text MD5: eca8409f39554d9ec39c9a2dd706a1af
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-19 09:54:20
Source code size: 234 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 518 / 572
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)