Libraryless. Click here for Pure Java version (4712L/26K).
svoid setCaret(final JTextComponent c, final int pos) { if (c != null) swing { c.setCaretPosition(pos); } }
Began life as a copy of #1003310
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: | #1006445 |
Snippet name: | setCaret - wrapper for setCaretPosition |
Eternal ID of this version: | #1006445/2 |
Text MD5: | 5d23e3fdc611b37d3a147a72833660ef |
Transpilation MD5: | 4d4fcb17cf8753397dd84315040cf1ff |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-18 17:41:41 |
Source code size: | 111 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 561 / 599 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1009427 - setCaretPosition - wrapper for JTextComponent.setCaretPosition with pcall #1014048 - setCaretIfPossible #1034046 - caretToHome |