static AutoCloseable tempRememberFocusedComponent() { final JComponent c = optCast(JComponent, focusedComponent()); ret autoCloseable { requestFocus(c); }; }
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: | 252 / 301 |
Version history: | 3 change(s) |
Referenced in: | [show references] |