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

4
LINES

< > BotCompany Repo | #1016506 // lineAtCaret

JavaX fragment (include)

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

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: 433 / 473
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)