static <A extends JComponent> A focus(final A a) { if (a != null) awt { a.requestFocus(); } ret a; }
Began life as a copy of #1005945
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: | #1007396 |
Snippet name: | focus - focus JComponent |
Eternal ID of this version: | #1007396/4 |
Text MD5: | e0e0fa8a4ea650010c7d3fc9f7f7d67a |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-24 00:20:16 |
Source code size: | 107 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 510 / 548 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1010142 - focusLater - focus JComponent after a few milliseconds (safer) |