static <A extends JTextComponent> A setTextCaret0(fS text, final A c) { swing { setText(c, text); moveCaretToStart(c); } ret c; } static <A extends JTextComponent> A setTextCaret0(A c, S text) { ret setTextCaret0(text, c); }
Began life as a copy of #1003310
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: | #1015604 |
Snippet name: | setTextCaret0 - setText and move caret to start |
Eternal ID of this version: | #1015604/4 |
Text MD5: | a5c13350c82d4b3a6eee8b54be204f71 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-18 14:11:01 |
Source code size: | 251 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 442 / 489 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1016439 - setTextKeepCaret - setText and try to keep caret position #1020489 - setTextAndMoveCaretToEnd |