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

7
LINES

< > BotCompany Repo | #1015542 // onEnterIfTextField (or combo box)

JavaX fragment (include)

static void onEnterIfTextField(Component c, Runnable action) {
  if (action == null) ret;
  if (c cast JTextField)
    onEnter(c, action);
  else if (c cast JComboBox)
    onEnter(c, 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: #1015542
Snippet name: onEnterIfTextField (or combo box)
Eternal ID of this version: #1015542/5
Text MD5: c8b499d9aadaa985d58e4a10d4676e1c
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:44:08
Source code size: 199 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 432 / 482
Version history: 4 change(s)
Referenced in: [show references]