Transpiled version (10165L) is out of date.
svoid moveCaretToLineAndCol(JTextArea ta, LineAndColumn lac) swing { try { setCaretPosition(ta, ta.getLineStartOffset(lac.line-1)+lac.col-1); } on fail { print("Have lines: " + countLines(ta.getText())); } }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035160 |
| Snippet name: | moveCaretToLineAndCol |
| Eternal ID of this version: | #1035160/7 |
| Text MD5: | 7f155cba54011d1d2fc23bfe7eb3646e |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-12-17 18:07:57 |
| Source code size: | 227 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 446 / 594 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |