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

11
LINES

< > BotCompany Repo | #1015604 // setTextCaret0 - setText and move caret to start

JavaX fragment (include)

1  
static <A extends JTextComponent> A setTextCaret0(fS text, final A c) {
2  
  swing {
3  
    setText(c, text);
4  
    moveCaretToStart(c);
5  
  }
6  
  ret c;
7  
}
8  
9  
static <A extends JTextComponent> A setTextCaret0(A c, S text) {
10  
  ret setTextCaret0(text, c);
11  
}

Author comment

Began life as a copy of #1003310

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: #1015604
Snippet name: setTextCaret0 - setText and move caret to start
Eternal ID of this version: #1015604/4
Text MD5: a5c13350c82d4b3a6eee8b54be204f71
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-18 14:11:01
Source code size: 251 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 441 / 489
Version history: 3 change(s)
Referenced in: [show references]