Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1016506 // lineAtCaret

JavaX fragment (include)

1  
static S lineAtCaret(JTextComponent tc) {
2  
  Pair<S, Int> p = textAndCaretPosition(tc);
3  
  ret getLine(p.a, charIndexToUserLandLineNr(p.a, p.b));
4  
}

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: #1016506
Snippet name: lineAtCaret
Eternal ID of this version: #1016506/2
Text MD5: 80e8d857a044a377c8c2db94955cb922
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-21 01:51:14
Source code size: 148 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 364 / 393
Version history: 1 change(s)
Referenced in: [show references]