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

5
LINES

< > BotCompany Repo | #1020784 // tempAddKeyEventDispatcher

JavaX fragment (include)

1  
static AutoCloseable tempAddKeyEventDispatcher(final KeyEventDispatcher d) {
2  
  final KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
3  
  fm.addKeyEventDispatcher(d);
4  
  ret autoCloseable { fm.removeKeyEventDispatcher(d); };
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020784
Snippet name: tempAddKeyEventDispatcher
Eternal ID of this version: #1020784/2
Text MD5: 0479467f5c6451e310c664f1e4ad7d78
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-02 17:01:37
Source code size: 259 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 303 / 312
Version history: 1 change(s)
Referenced in: [show references]