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)

static <A extends JTextComponent> A setTextCaret0(fS text, final A c) {
  swing {
    setText(c, text);
    moveCaretToStart(c);
  }
  ret c;
}

static <A extends JTextComponent> A setTextCaret0(A c, S text) {
  ret setTextCaret0(text, c);
}

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: 440 / 487
Version history: 3 change(s)
Referenced in: [show references]