1 | static void textAreaGoToRow(final JTextArea ta, final int row) swing { |
2 | if (ta == null) ret; |
3 | int index = charIndexOfRow(ta.getText(), row-1); |
4 | ta.setCaretPosition(index); |
5 | } |
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: | #1012343 |
Snippet name: | textAreaGoToRow - row counting from 1 |
Eternal ID of this version: | #1012343/3 |
Text MD5: | 9e556e3fb1c57fd820fea500586f55af |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-26 15:11:14 |
Source code size: | 180 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 488 / 484 |
Version history: | 2 change(s) |
Referenced in: | [show references] |