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

9
LINES

< > BotCompany Repo | #1008725 // onFocus

JavaX fragment (include)

static void onFocus(final JComponent c, fO action) {
  swing {
    c.addFocusListener(new FocusAdapter {
      public void focusGained(FocusEvent evt) {
        pcallF(action);
      }
    });
  }
}

Author comment

Began life as a copy of #1001825

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: #1008725
Snippet name: onFocus
Eternal ID of this version: #1008725/3
Text MD5: 0a46cf14a2e542eafb516ad732ce3988
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-07 14:28:45
Source code size: 206 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 548 / 595
Version history: 2 change(s)
Referenced in: [show references]