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

3
LINES

< > BotCompany Repo | #1016505 // textAndCaretPosition

JavaX fragment (include)

static Pair<S, Int> textAndCaretPosition(final JTextComponent tc) {
  ret swing(func -> Pair<S, Int> { pair(getText(tc), getCaretPosition(tc)) });
}
     

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: #1016505
Snippet name: textAndCaretPosition
Eternal ID of this version: #1016505/2
Text MD5: a7abd6a5a821972e58ac9251d4086766
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:50:25
Source code size: 157 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 420 / 487
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)