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

4
LINES

< > BotCompany Repo | #1020896 // tempRememberFocusedComponent (& restore)

JavaX fragment (include)

1  
static AutoCloseable tempRememberFocusedComponent() {
2  
  final JComponent c = optCast(JComponent, focusedComponent());
3  
  ret autoCloseable { requestFocus(c); };
4  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020896
Snippet name: tempRememberFocusedComponent (& restore)
Eternal ID of this version: #1020896/4
Text MD5: 69cc72a7be02baf0c1cac5626c1c7db5
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-08 20:55:16
Source code size: 164 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 254 / 303
Version history: 3 change(s)
Referenced in: [show references]